March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
hi
i have to tables, upon them i am creating list which aggregate the measure in a list.
i want to create running diff on rows.
attach picture.
Solved! Go to Solution.
hi, @yogevz
After my test, you could use this formula to create a measure as below:
Measure = CALCULATE([Count_student measure])- CALCULATE([Count_student measure],FILTER(ALL(Sheet1),Sheet1[Foreign]=MAX(Sheet1[Foreign])-1))
Count_student measure is a measure which count students.
Result:
Best Regards,
Lin
Use this one instead. In a new column and not measure
DIFF = var previous = CALCULATE(FIRSTNONBLANK(Sheet1[count_student], Sheet1[count_student]), FILTER(Sheet1, Sheet1[ForeignYear]=EARLIER(Sheet1[ForeignYear] ) -1)) return IF(ISBLANK(previous),0, Sheet1[count_student]-previous)
IMage below:
i can't....
the count_student is a measure which count students...
so the column phrase can't see this measure.
this is the problem....
hi, @yogevz
After my test, you could use this formula to create a measure as below:
Measure = CALCULATE([Count_student measure])- CALCULATE([Count_student measure],FILTER(ALL(Sheet1),Sheet1[Foreign]=MAX(Sheet1[Foreign])-1))
Count_student measure is a measure which count students.
Result:
Best Regards,
Lin
You can try this formula:
New_Diff = SUM(Sheet1[count_student]) - IF(MAX(Sheet1[ForeignYear])=1, SUM(Sheet1[count_student]), LOOKUPVALUE(Sheet1[count_student], Sheet1[ForeignYear], MAX(Sheet1[ForeignYear])-1))
Please try the following DAX formula:
DIFFERENCE = var previous = CALCULATE(FIRSTNONBLANK(Table[count_student];Table[count_student]);FILTER(Table;Table[ForeignYear]=EARLIER(Table[ForeignYear]) )) return IF(ISBLANK(previous);0; Table[count_student]-previous)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
167 | |
117 | |
63 | |
57 | |
50 |