Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.