Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
Trying to show a cumulative sum of orders based on Dates (displayed with WeekNum)
My table Currently looks like this ;
Week Num | Count |
1 | 1 |
2 | 4 |
3 | 3 |
4 | 7 |
My Future State is
Week Num | Sum |
1 | 1 |
2 | 5 |
3 | 8 |
Thanks!
@Anonymous ,
A new column
sumx(filter(Table, [Week Num] <= earlier([Week Num])),[count])
A new measure
sumx(filter(allselected(Table), Table[Week Num] <= max(Table[Week Num])),Table[count])
User | Count |
---|---|
25 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
30 | |
13 | |
11 | |
9 | |
6 |