Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hello everyone,
I have a measure that calculates the monthly value, and then I have another measure that calculates the accumulated total, which is working correctly
Cumulative Measure:
Solved! Go to Solution.
Hi, @SimaoCoimbra
According to your description, The idea is to add a column to the virtual table. This column is the column equivalently converted from [Month Total Measure], and then calculate the cumulative value of this new column on the basis of this table.
Like this:
measure=
var t =
summarize(
All(table),
table[month number],
"Month Total",
xxx(Convert Month Total Measure to Month Total column)
)
var tab =
addcolumns(
t,
"Cumu",
sumx(
filter(
t,
[month number]<=earlier(table[month number])
),
[Month Total]
)
)
return
sumx(
filter(
tab,
[month number] = selectedvalue[month number]
),
[Cumu]
)
If it doesn’t solve your problem, please share some sample data and feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @SimaoCoimbra
According to your description, The idea is to add a column to the virtual table. This column is the column equivalently converted from [Month Total Measure], and then calculate the cumulative value of this new column on the basis of this table.
Like this:
measure=
var t =
summarize(
All(table),
table[month number],
"Month Total",
xxx(Convert Month Total Measure to Month Total column)
)
var tab =
addcolumns(
t,
"Cumu",
sumx(
filter(
t,
[month number]<=earlier(table[month number])
),
[Month Total]
)
)
return
sumx(
filter(
tab,
[month number] = selectedvalue[month number]
),
[Cumu]
)
If it doesn’t solve your problem, please share some sample data and feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
122 | |
69 | |
67 | |
58 | |
52 |
User | Count |
---|---|
187 | |
94 | |
67 | |
63 | |
54 |