Forum Discussion
Deferred Revenue - Help with DAX Please!
- 5 years ago
Thank you so much for taking the time to help me! With your help, I was able to figure out the calculate function and It was helpful to make that new "Monthly Billing" measure. This is where I landed:
RIS Monthly Deferred = (TOTALYTD(CALCULATE('RIS & RAL Annual Bill + RIS Monthly'[MonthlyBilling2]/12),PREVIOUSMONTH('RIS & RAL Annual Bill + RIS Monthly'[Month Start Date])))Thank you so much!
I think I've got this...this is the kind of thing that makes my former accountant self happy 🙂
As a check, a created a table with all the amounts you have above...
The DAX for that table follows...
SUMMARIZE(
'Calendar',
'Calendar'[Year],
'Calendar'[Month],
"NewBilling",
CALCULATE(
[Billing],
'Raw Data'[BL_TYP_TXT] = "Monthly"
),
"MonthlyBilling",
CALCULATE(
[Billing] / 12,
'Raw Data'[BL_TYP_TXT] = "Monthly"
),
"ImmediatelyRecognized",
CALCULATE(
([Billing] / 12),
'Raw Data'[BL_TYP_TXT] = "Monthly"
) * 'Calendar'[Month]
)tangerinemdr15 here's your measure. It assumes you have a date table and it is marked appropriately...
Billing = SUM('Raw Data'[BL_CHRG_AMT])
Monthly Billing Amount =
CALCULATE(
[Billing] / 12,
FILTER(
'Raw Data',
'Raw Data'[BL_TYP_TXT] = "Monthly"
)
)The measure for [Billing] is also used in the check table above.
- tangerinemdr155 years ago
Helper I
Thank you so much for taking the time to help me! With your help, I was able to figure out the calculate function and It was helpful to make that new "Monthly Billing" measure. This is where I landed:
RIS Monthly Deferred = (TOTALYTD(CALCULATE('RIS & RAL Annual Bill + RIS Monthly'[MonthlyBilling2]/12),PREVIOUSMONTH('RIS & RAL Annual Bill + RIS Monthly'[Month Start Date])))Thank you so much!- littlemojopuppy5 years ago
Community Champion
tangerinemdr15 you're welcome...glad I could help! My inner accountant enjoyed it! 🙂