Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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, @Invesco ;
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, @Invesco ;
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, @Invesco ;
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
76 | |
76 | |
56 | |
35 | |
34 |
User | Count |
---|---|
99 | |
56 | |
54 | |
45 | |
40 |