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.
Hi,
I need help to ADD a criteria in a measure.
My measure works fine :
BUT I need to add an exception based on calendar.
The criteria is that IF I am in the current quarter (FY22 Q2) AND in the second month (January'22) then I need ONLY to consider the sum of NWD Value that in this case for Dec21 and Jan22 is 30.4 = (16.91 + 19.33)
I need to do this becase I have to divide Revenue/NWD based on the same quantity of months and as you see Feb22 doesn't have value.
As you see above I have revenue of 529 and 573 in Dec and Jan and I need to divide this by considering only those 2 months for NWD values
As you see I need to get 30.4 that is the result of : () but at the moment is given me 20.1
bacause is considering Fe22
My idea was to create some Variables in order to get the current quarter... I can get to this by using
Or Perhaps if I am under those months in the current month then substract NWD of the same month like [NWD Value] - [NWD Value] and the actual measure, let's say, gives the correct SUM.
like :
hope you can help me with any other idea.
Thanks
Solved! Go to Solution.
Use a SWITCH() or IF() statement that handles the [Month & FY] value of "Jan FY22" different than all the other values.
Use a SWITCH() or IF() statement that handles the [Month & FY] value of "Jan FY22" different than all the other values.
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.