Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi All,
Kindly suggest how to modify below measure to show cumulative values ie.. P01 = P01, P02 = P01 +P02, P03 = P01 +P02+P03
Budget PNL =
VAR LC=
CALCULATE(SUM(FACT_DATA[AMOUNT]), FILTER(FACT_DATA, [CURRENCY_ID]=186 && FACT_DATA [SCENARIO_ID]=2 && year(FACT_DATA [PERIOD_DATE])=[ControlPeriod Current Year]))
VAR USD=
CALCULATE(SUM(FACT_DATA[AMOUNT]), FILTER(FACT_DATA, [CURRENCY_ID]=184 && FACT_DATA [SCENARIO_ID]=2&& year(FACT_DATA[PERIOD_DATE])=[ControlPeriod Current Year]))
RETURN
IF(SELECTEDVALUE(_Currency[Currency])="Local",LC,
IF(SELECTEDVALUE(_Currency[Currency])="USD Operational",USD))
ControlPeriod Current Year = YEAR(ALL(DIM_CONTROL_PERIOD[CURRENT_PERIOD]))
my model looks like:
Solved! Go to Solution.
no problem. I did try below code block to modyfy my formulas and this works
Cumulative Sales =
VAR MaxDate = MAX('DateTable'[Date])
RETURN
CALCULATE(
SUM('Sales'[Amount]),
FILTER(
ALLSELECTED('DateTable'),
'DateTable'[Date] <= MaxDate
)
)
Hi,
Is there a month/year associated with the period that you have shown in the column area of the matrix? Share some data to work with and explain the calculations logic in simple language.
Thnak you for taking time, I did modify content to provide more details.
sorry but still cannot understand.
no problem. I did try below code block to modyfy my formulas and this works
Cumulative Sales =
VAR MaxDate = MAX('DateTable'[Date])
RETURN
CALCULATE(
SUM('Sales'[Amount]),
FILTER(
ALLSELECTED('DateTable'),
'DateTable'[Date] <= MaxDate
)
)
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 41 | |
| 37 | |
| 34 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 62 | |
| 31 | |
| 26 | |
| 25 |