Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hi all,
I need to create the following formula into DAX = accounts receivable at month end/3 months total sales/# of days in 3 months
So, for example, for March, it will be = March AR / Jan - Mar sales / Jan - Mar number of days
I am able to create the following DAX:
Solved! Go to Solution.
I end up using 3 different measures. One measure (Measure1) just to calculate the number of days, one measure (Measure2) to calculate AR/sales, and then another measure to calculate measure1/Measure2.
@Anonymous , try like
DIVIDE(
CALCULATE(SUM('A/R'[Amount]), 'A/R'[Date] = "2022-03-01"),
SUM(Sales[Jan]) + SUM(Sales[Feb]) + SUM(Sales[Mar]),
CALCULATE((COUNT('Calendar'[MonthYearNumber] = "22 01") + COUNT('Calendar'[MonthYearNumber] = "22 02") + COUNT('Calendar'[MonthYearNumber] = "22 03"))
))
I created a measure just to calculate the number of days and the following measure works:
However, when I tried to incorporate this measure onto the other measure, it didn't work:
Any chance you can tell me what needs to be done here?
I end up using 3 different measures. One measure (Measure1) just to calculate the number of days, one measure (Measure2) to calculate AR/sales, and then another measure to calculate measure1/Measure2.