Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
I face an issue with a measure (called PreviewCumul).
This is the context :
The [Preview] is a measure corresponding to the [Realized] column if MONTH([Date]) <= 2, else [Provisional] column
Preview =
VAR MonthCount = 2
RETURN
IF(
MAX(Dates[MoisNum]) <= MonthCount,
SUMX(
'Table1',
Table1[Realized]
),
SUMX(
'Table2',
Table2[Provisional]
)
)My problem then concerns the [PreviewCumul] measure that does the running total of [Preview]
PreviewCumul =
CALCULATE(
[Preview],
FILTER(
CALCULATETABLE(
SUMMARIZE('Dates', 'Dates'[AnnéeMoisTri], 'Dates'[engDate]),
ALLSELECTED('Dates')
),
ISONORAFTER(
'Dates'[AnnéeMoisTri], MAX('Dates'[AnnéeMoisTri]), DESC,
'Dates'[engDate], MAX('Dates'[engDate]), DESC
)
)
)As we can see in the table screenshot above, the problem is that as from month number 3 it sums the values of [provisional] only from the beginning of the year instead of summing [Preview] values.
Does anyone have an idea of a clean way to solve it ?
Thanks in advance.
Best regards,
Cado
Solved! Go to Solution.
@Cado_one , You need to try measure like
calculate(Sumx(Values('Date'[Month Year]), [Preview]),filter(all('Date'),'Date'[date] <=max('Date'[date])))
or
calculate(Sumx(Values('Date'[Month Year]), [Preview]),filter(allselected('Date'),'Date'[date] <=max('Date'[date])))
@Cado_one , You need to try measure like
calculate(Sumx(Values('Date'[Month Year]), [Preview]),filter(all('Date'),'Date'[date] <=max('Date'[date])))
or
calculate(Sumx(Values('Date'[Month Year]), [Preview]),filter(allselected('Date'),'Date'[date] <=max('Date'[date])))
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 58 | |
| 45 | |
| 42 | |
| 20 | |
| 18 |