Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi
I have a DAX for custom measure with the formula of
Prev Day User Asset USD Latest Rate = CALCULATE(sum('user daily asset'[amount_usd_latest_rate]),PREVIOUSDAY(Dates[Date]))
The DAX will give result like below. Where the prev day value of each day is correct, but on the subtotal of the month, its showing the previous day record of the first date instead of the SUM of all the prev day value.
How can this be fixed?
Thanks
Solved! Go to Solution.
Maybe this:
[Prev Day User Asset USD Latest Rate] =
sumx(
values ( Dates[Date] ),
calculate (
SUM( 'user daily asset'[amount_usd_latest_rate] ),
PREVIOUSDAY( Dates[Date] )
)
)
What should the logic be behind this measure? How do you want to aggregate? You've not shown this... And please always remember that one picture is worth a thousand words 🙂
Hi @daXtreme
I've edited my question to show an example. Hope it is clearer now
THanks
Maybe this:
[Prev Day User Asset USD Latest Rate] =
sumx(
values ( Dates[Date] ),
calculate (
SUM( 'user daily asset'[amount_usd_latest_rate] ),
PREVIOUSDAY( Dates[Date] )
)
)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
42 | |
21 | |
21 | |
14 | |
13 |
User | Count |
---|---|
43 | |
39 | |
33 | |
18 | |
17 |