Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
So I have this formula in Excel, which looks at the month number I have above my date to sum up an entire row that matches that month number in order to determine which rate I want to multiply that day's units by, since they base the rates off the monthly sum.
=IF(SUMIF('X'!4:4, 4, 'X'!27:27)>=365000, (CS31*0.077),
IF(SUMIF('X'!4:4, 4, 'X'!27:27)>=243000, (CS31*0.095),
IF(SUMIF('X'!4:4, 4, 'X'!27:27)>=162000, (CS31*0.117),
IF(SUMIF('X'!4:4, 4, 'X'!27:27)>=121000, (CS31*0.15),
IF(SUMIF('X'!4:4, 4, 'X'!27:27)>=80000, (CS31*0.2),
IF(SUMIF('X'!4:4, 4, 'X'!27:27)>=1, (CS31*0.5),
0))))))
I'm trying to get this to work in DAX, when only one day is selected, but I can't get it to look at the whole month's numbers to sum when only one day is selected. Does anyone have any experience with trying to get this to work?
Solved! Go to Solution.
okay actually... I figured it out! if anyone needs it, I used a combination of TOTALMTD() and DATEMTD()
okay actually... I figured it out! if anyone needs it, I used a combination of TOTALMTD() and DATEMTD()
Hi @SH-4 ,
I'm so glad you have solved your issue. And thanks for sharing this method for us to solve this issue.
Please mark your reply as a solution. More people will benefit from it.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.