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.
MyMeasure = TotalLeaversYTD / NoOfPeople * (12 / n)
where
n is the month for which the measure is being calculated
Rest of the things I am able to create a measure however not able to figure out how to create a measure for n which can be called up for MyMeasure
Solved! Go to Solution.
Hi,
Try this
=IF(MONTH(MIN(Data[MonthName]))-3<0,12+(MONTH(MIN(Data[MonthName]))-3),MONTH(MIN(Data[MonthName]))-3)
Hope this helps.
Your post is not clear. Do you want the current month to be considered as n?
I want the filtered month no to be considered as n
for e.g. while calculating YTD % as in May, value of n should be 5-3 = 2 (2nd from Apr)
(Financial year considered as Apr to Mar)
My PowerBI table looks like this...I am unable to create a measure YTDAttrition which gets evaluated in context of the selected month. Please refer to the above screenshot formula next to YTDAttrition
Hi,
Try this
=IF(MONTH(MIN(Data[MonthName]))-3<0,12+(MONTH(MIN(Data[MonthName]))-3),MONTH(MIN(Data[MonthName]))-3)
Hope this helps.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.