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.
I want the sum of values in a calculated column from other column. For easy understand i have put here a table format for example and Please let me know how can we achieve this result:
i have this table with ID and Score Column, what I want is a calculated column that is running score which shows the sum for first two rows then in second row of calculated column i want the sum of other two rows and then in third row i want the sum for all three and so on.
ID Score
1 10
2 15
3 20
Expecting result
ID Score calculated column (running score)
1 10 10
2 15 25 (sum of two rows 10+15)
3 20 45 (sum of all three and so on)
Thanks
Solved! Go to Solution.
Hi @Anonymous
You may refer to below formula:
Column = CALCULATE ( SUM ( Table1[Score] ), FILTER ( Table1, Table1[ID] <= EARLIER ( Table1[ID] ) ) )
Regards,
Cherie
Hi @Anonymous
You may refer to below formula:
Column = CALCULATE ( SUM ( Table1[Score] ), FILTER ( Table1, Table1[ID] <= EARLIER ( Table1[ID] ) ) )
Regards,
Cherie
Hi @Anonymous
Try this for your calc column:
RunningScore = CALCULATE ( SUM ( Table1[Score] ), Table1[ID] <= EARLIER ( Table1[ID] ) )
Hi,
Thanks for your valuable time but this not worked for my expectation and i got the solution from @v-cherch-msft.
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 |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |