I have a dynamic table "table" (created by SUMMARIZE function based on other table) with fields:
- "MonthIndex" - column
- "MonthName" - column
- "Forecast%" - measure which depends on some slicer and switch statements
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.
Hi
I have a dynamic table "table" (created by SUMMARIZE function based on other table) with fields:
table =
SUMMARIZE (
'Calendar New',
'Calendar New'[Month],
'Calendar New'[MonthIndex]
)
I am trying to set up a running total "x" of "Forecast%" by "MonthIndex" but the runing total does not work - see screenshot.
x = CALCULATE ( 'table'[Forecast%], FILTER ( ALL ( 'table'[MonthIndex] ), 'table'[MonthIndex] <= MAX ( 'table'[MonthIndex] ) ) )
Looking for any ideas
regards
Solved! Go to Solution.
@smpa01this has worked for me
x = SUMX( FILTER( ALL('table'), 'table'[MonthIndex] <= MAX ( 'table'[MonthIndex] ) ), 'table'[Forecast%] )
@diskman any chance you can provide a sample pbix?
@diskman How did you write
[Forecast%]
@smpa01 it is as below ... AFAIK It must use the measure because there is visual slicer used "Preference %" for measure calculation
@smpa01this has worked for me
x = SUMX( FILTER( ALL('table'), 'table'[MonthIndex] <= MAX ( 'table'[MonthIndex] ) ), 'table'[Forecast%] )
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 |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
88 | |
63 |