How to calculate Earned Premium between two dates till @AsOfDate and break it down by each month in DAX
问题 I have Premium for a policy with TransactionEffectiveDate and TransactionExpirationDate . Is any way to write query in DAX that would take each premium amount and break it down by the month between those two dates. The @AsOfDate parameter will be the date the policy stops Earning. For Example: PolicyNumber WIC1000158-00 has Premium of $82,913 and TransactionEffectiveDate 1/5/2018 and TransactionExpirationDate 1/5/2019. which gives us total of 365 days of Policy life. Let see how much we