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.
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.
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 |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |