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 table called WeeklyData with columns FiscalWeek and Count.
I need to add another column (Not Measure) that will have running totals. So for example in row of RunningTotal we would have 132, row two would be 132+654 and so on.
How would i do that ?
FiscalWeek | Count |
1 | 132 |
2 | 654 |
3 | 987 |
4 | 498 |
5 | 658 |
6 | 738 |
7 | 918 |
8 | 658 |
9 | 468 |
10 | 681 |
11 | 95 |
12 | 128 |
13 | 642 |
14 | 379 |
15 | 728 |
16 | 291 |
17 | 675 |
Solved! Go to Solution.
Here is a column expression that works. Replace T1 with your actual table name.
RT =
VAR thisFW = T1[FiscalWeek]
RETURN
SUMX ( FILTER ( T1, T1[FiscalWeek] <= thisFW ), T1[Count] )
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Here is a column expression that works. Replace T1 with your actual table name.
RT =
VAR thisFW = T1[FiscalWeek]
RETURN
SUMX ( FILTER ( T1, T1[FiscalWeek] <= thisFW ), T1[Count] )
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Thank you. This worked like charm 😉
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 |
---|---|
113 | |
97 | |
79 | |
73 | |
56 |
User | Count |
---|---|
145 | |
105 | |
104 | |
90 | |
63 |