Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I am trying to calculate the percentage change in the number of users today compared to yesterday for the number of users column to see the growth.
can someone help with the Dax measure for calculating the percentage?
Solved! Go to Solution.
Hi @neetu14 ,
Check this measure
Measure =
var today = CALCULATE(SUM('Table'[NumberOfUsers]),FILTER('Table','Table'[SnapshotDate]=TODAY()))
var yesterday = CALCULATE(SUM('Table'[NumberOfUsers]),FILTER('Table','Table'[SnapshotDate]=TODAY()-1))
return
(today-yesterday)/yesterday
Here's the result. Let me know if it works.
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
it depends on your data model
in the most common case it will look like
Measure =
DIVIDE(
CALCULATE(DISTINCTCOUNT(Table[UserID]), Table[Date] = TODAY()),
CALCULATE(DISTINCTCOUNT(Table[UserID]), Table[Date] = TODAY()-1)
)
I tried to use your formula
I tried using your formula
Hi @neetu14 ,
Check this measure
Measure =
var today = CALCULATE(SUM('Table'[NumberOfUsers]),FILTER('Table','Table'[SnapshotDate]=TODAY()))
var yesterday = CALCULATE(SUM('Table'[NumberOfUsers]),FILTER('Table','Table'[SnapshotDate]=TODAY()-1))
return
(today-yesterday)/yesterday
Here's the result. Let me know if it works.
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
98 | |
91 | |
84 | |
71 | |
67 |
User | Count |
---|---|
114 | |
103 | |
100 | |
72 | |
64 |