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 all,
On "X" table I have two (relevant) fields: "weeks" and "volume".
I want to display 3 columns: the volume on current week , the volume on the previous week and the difference between these two weeks (Delta).
I have tried to do so but I don't know how to calculate the delta between two columns that actually belong to the same field.
Thanks in advanced!
Solved! Go to Solution.
@MG4,
Create the following columns in your table. If the DAX don't help, please share dummy data of your table and post expected result.
pre = CALCULATE(FIRSTNONBLANK(X[Volume],1),FILTER(X,X[Weeks]=EARLIER(X[Weeks])-1))
delta = IF(ISBLANK(X[pre]),BLANK(), X[Volume]-X[pre])
Regards,
Lydia
@MG4,
Create the following columns in your table. If the DAX don't help, please share dummy data of your table and post expected result.
pre = CALCULATE(FIRSTNONBLANK(X[Volume],1),FILTER(X,X[Weeks]=EARLIER(X[Weeks])-1))
delta = IF(ISBLANK(X[pre]),BLANK(), X[Volume]-X[pre])
Regards,
Lydia
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 |
---|---|
114 | |
99 | |
82 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |