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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.