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!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
hi,
@amitchandak has answered MOM but i need to implement condition .
if am doing 3 mom in mar 2021.
jan to mar 2020(3 months)
jan to mar 2021(3 months)
but in any of total 6 months has value of Zero or blank, than 3 mom will be blank, no measure required.
Condition is sum of total per month should be greather than 0.
Thanks
Vinay
Solved! Go to Solution.
@bideveloper555 , If you have date selected from date table
Rolling 3= CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-3,MONTH))
Rolling 3 last year = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date ],eomonth(MAX('Date'[Date ]),-12) ,-3,MONTH))
But remember this will rolling 3 one value for 3 months, not a trend as one value is suggested.
Also, refer
Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI
hi amit,
what i did was added extra column, aggregating over to month.
Than using your measure with IF statement as per condition i needed.
@bideveloper555 , If you have date selected from date table
Rolling 3= CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-3,MONTH))
Rolling 3 last year = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date ],eomonth(MAX('Date'[Date ]),-12) ,-3,MONTH))
But remember this will rolling 3 one value for 3 months, not a trend as one value is suggested.
Also, refer
Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI
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.