The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance 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 |
---|---|
13 | |
8 | |
7 | |
7 | |
5 |
User | Count |
---|---|
21 | |
15 | |
15 | |
10 | |
7 |