Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
hello,
I have been stuck on this for a few days now. Could you please help me create a column to be added to the matrix to calculate the day over day change for a particular count.
See below. I have the dates in the column headers and counts for each of the dates below them. I want a new column to show %change of counts from previous day for each of the items in the name column. Thanks so much!
Solved! Go to Solution.
Hi @Anonymous ,
One sample for your refe rence, here we can create a measure as below.
Measure = VAR pred = MAX ( [Day ] ) - 1 VAR prev = CALCULATE ( SUM ( [value] ), FILTER ( ALL ( Table1 ), [Day ] = pred ), VALUES ( Table1[Name] ) ) VAR change = MAX ( [value] ) - prev VAR Per = DIVIDE ( change, prev, 0 ) RETURN IF ( prev = 0, BLANK (), Per )
Hi @Anonymous ,
One sample for your refe rence, here we can create a measure as below.
Measure = VAR pred = MAX ( [Day ] ) - 1 VAR prev = CALCULATE ( SUM ( [value] ), FILTER ( ALL ( Table1 ), [Day ] = pred ), VALUES ( Table1[Name] ) ) VAR change = MAX ( [value] ) - prev VAR Per = DIVIDE ( change, prev, 0 ) RETURN IF ( prev = 0, BLANK (), Per )
I figured it out, except my calculation looks at day-over-day differences (not % change).
Hi - Thankyou so much for this. I did try this but still nt getting the anticipated results. please see below . As you can see the day over day % change is incorrect. I am wondering if its because the daily count of each of these names is not summed in the raw data.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
94 | |
92 | |
82 | |
71 | |
49 |
User | Count |
---|---|
143 | |
121 | |
111 | |
59 | |
57 |