Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Good Morning. So i have a PBI dashboard I created (very amature) and I need some help.
I need to show wheather the value is up or down from the previous month. I know how to add the arrows with conditional formatting, the issue I'm running into is the calculation. I used a previous dashboard as a guide, but the formula to calculate the difference Month over month is not right. Does anyone have the syntax or guidence for how to write this so it work. Right now i currently have a measure created :
"
Solved! Go to Solution.
Hi, @Anonymous
You can try the following methods.
%_Count_Mom_Var =
IF (
CALCULATE ( SUM ( 'Carc_Rarc_Historical'[Patnum] ),
FILTER ( ALL ( Dates ),
Dates[Date_Rank] = SELECTEDVALUE ( Dates[Date_Rank] ) - 1
)
) = 0,
"",
CALCULATE ( SUM ( 'Carc_Rarc_Historical'[Patnum] )
- CALCULATE ( SUM ( 'Carc_Rarc_Historical'[Patnum] ),
FILTER ( ALL ( Dates ),
Dates[Date_Rank] = SELECTEDVALUE ( Dates[Date_Rank] ) - 1
)
)
)
/ CALCULATE ( SUM ( 'Carc_Rarc_Historical'[Patnum] ),
FILTER ( ALL ( Dates ),
Dates[Date_Rank] = SELECTEDVALUE ( Dates[Date_Rank] ) - 1
)
)
)
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
You can try the following methods.
%_Count_Mom_Var =
IF (
CALCULATE ( SUM ( 'Carc_Rarc_Historical'[Patnum] ),
FILTER ( ALL ( Dates ),
Dates[Date_Rank] = SELECTEDVALUE ( Dates[Date_Rank] ) - 1
)
) = 0,
"",
CALCULATE ( SUM ( 'Carc_Rarc_Historical'[Patnum] )
- CALCULATE ( SUM ( 'Carc_Rarc_Historical'[Patnum] ),
FILTER ( ALL ( Dates ),
Dates[Date_Rank] = SELECTEDVALUE ( Dates[Date_Rank] ) - 1
)
)
)
/ CALCULATE ( SUM ( 'Carc_Rarc_Historical'[Patnum] ),
FILTER ( ALL ( Dates ),
Dates[Date_Rank] = SELECTEDVALUE ( Dates[Date_Rank] ) - 1
)
)
)
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
134 | |
68 | |
68 | |
54 | |
52 |
User | Count |
---|---|
207 | |
95 | |
64 | |
61 | |
57 |