Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi,
I created a measure to calcute percentage. Requirment is to obtain Today's and previous days value. Which will be compared to show trend.
Thank you.
Solved! Go to Solution.
@atiftanveer
Follow this pattern:
Change % =
VAR __CurrentValue = [Measure]
VAR __PrevDateValue =
CALCULATE ( [Measure], OFFSET ( -1, ALLSELECTED ( TABLE[Date] ) ) )
RETURN
DIVIDE ( __CurrentValue - __PrevDateValue, __PrevDateValue )
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Hi @Fowmy
Happy New Year. I resume work on this after vacation. I acheive my goal by creating an Rank on date and used it in measure as filter:
REMOVEFILTERS() is to remove page filters from this measrue.
Appreciate your help, I might not able to apply your solution correctly.
Regards
@atiftanveer
Follow this pattern:
Change % =
VAR __CurrentValue = [Measure]
VAR __PrevDateValue =
CALCULATE ( [Measure], OFFSET ( -1, ALLSELECTED ( TABLE[Date] ) ) )
RETURN
DIVIDE ( __CurrentValue - __PrevDateValue, __PrevDateValue )
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Hi Fowmy,
I appreciate you spare you time to look in to it. You suggestion work fine for totals. My requirement is to get percentage of today which is 72.95% and yesterday which is 63.93% then I will calculate the differnce (Today - Yesterday).
Regards
@atiftanveer
I hope that is what exactly the measure that I shared works.
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Hi @Fowmy
Happy New Year. I resume work on this after vacation. I acheive my goal by creating an Rank on date and used it in measure as filter:
REMOVEFILTERS() is to remove page filters from this measrue.
Appreciate your help, I might not able to apply your solution correctly.
Regards
User | Count |
---|---|
98 | |
87 | |
77 | |
67 | |
63 |
User | Count |
---|---|
110 | |
95 | |
95 | |
64 | |
58 |