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 have a Table with two columns - month, a #. I am trying to make a third calculated column that adds the current month with the lines above it to get a total. ex:
Month | Number | NumberYTD |
7/1/2020 | 23 | 23 |
8/1/2020 | 21 | 44 |
9/1/2020 | 22 | 66 |
10/1/2020 | 22 | 88 |
11/1/2020 | 21 | 109 |
12/1/2020 | 23 | 132 |
1/1/2021 | 21 | 153 |
2/1/2021 | 20 | 173 |
3/1/2021 | 23 | 196 |
I tried:
NumerYTD = calculate(sum(Table[Number]),Filter(Table,Table[Month]<=Table[Month]))
but that just gives me 196 for every line.
TYIA
Solved! Go to Solution.
@kressb ,
Try this code for a new calculated column:
@kressb ,
Try this code for a new calculated column:
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 |
---|---|
112 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |