Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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])))
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
117 | |
85 | |
49 | |
38 | |
28 |
User | Count |
---|---|
189 | |
76 | |
73 | |
54 | |
42 |