Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreShape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.
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.
User | Count |
---|---|
90 | |
88 | |
88 | |
79 | |
49 |
User | Count |
---|---|
153 | |
145 | |
106 | |
74 | |
55 |