Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Hi Experts
How would you amend the following messure to make all those month that are 01/01 irrespective of year return zero value as opposed to the previous month value.
Meaure =
PREVIOUSMonth =
IF(CALCULATE(SUM(Orders[Sales]),
PREVIOUSMONTH(Orders[DDate]))=01/01,0,CALCULATE(SUM(Orders[Sales]),
PREVIOUSMONTH(Orders[DDate])))
Not working
Solved! Go to Solution.
Hi, @Anonymous ;
If it is measure,
PREVIOUSMonth =
IF (
MONTH (max( Orders[DDate]) ) = 1
&& DAY ( max( Orders[DDate]) ) = 1,
0,
CALCULATE ( SUM ( Orders[Sales] ), PREVIOUSMONTH ( Orders[DDate] ) )
)
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous ;
Try it.
PREVIOUSMonth =
IF (
MONTH ( Orders[DDate] ) = 1
&& DAY ( Orders[DDate] ) = 1,
0,
CALCULATE ( SUM ( Orders[Sales] ), PREVIOUSMONTH ( Orders[DDate] ) )
)
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Team Yalan is the above a messure or calculated column measure
Hi, @Anonymous ;
If it is measure,
PREVIOUSMonth =
IF (
MONTH (max( Orders[DDate]) ) = 1
&& DAY ( max( Orders[DDate]) ) = 1,
0,
CALCULATE ( SUM ( Orders[Sales] ), PREVIOUSMONTH ( Orders[DDate] ) )
)
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 65 | |
| 65 | |
| 45 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 115 | |
| 114 | |
| 38 | |
| 36 | |
| 26 |