Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hello,
I need to get the value of projected salary affected by inflation rate based on the selection user selected with slicer where is a numeric range parameter table, showing how far in the future he/she wants to see (up to 5 years, based on MMF)
So related to this, there are basically three tables imporant:
1. InflationForcast table with 3 columns with this example of structure structure:
| Country | Year | Rate |
| Australia | 2024 | 3.10% |
| Australia | 2025 | 4.00% |
| Australia | 2026 | 3.40% |
| Australia | 2027 | 2.70% |
| Australia | 2028 | 2.60% |
2. Main table with name output, where of interest is a column with relevant Country names and TCoW per FTE column
3. Parameter table, generated via this code:
Cumulative Inflation Rate =
VAR __SelectedYears =
SELECTCOLUMNS(
FILTER(
'Years of Inflation',
'Years of Inflation'[Years of Inflation] <= MAX('Years of Inflation'[Years of Inflation])
),
"Year",
'Years of Inflation'[Years of Inflation Value] + YEAR(TODAY())
)
VAR __SelectedCountries = VALUES('output'[Country])
Var __Result =
SUMX(
__SelectedCountries,
PRODUCTX(
__SelectedYears,
LOOKUPVALUE(
InflationForecast[Rate],
InflationForecast[Country], [Country],
InflationForecast[Year], [Year]
) + 1
) - 1
)
RETURN
__Result
So it seems I got it wrong. Any suggestion here would be very appreciated. Please let me know if you need more information from my end.
Thanks a lot!
Matus
Solved! Go to Solution.
Okay, after some time I have figure it out, and this measure is working fine just in case somebody would be interested into it:
Projected Salary =
VAR __SelectedYears = SELECTEDVALUE('Years of Inflation'[Years of Inflation])
VAR __SelectedCountry = SELECTEDVALUE('output'[Country])
VAR __SelectedRole = SELECTEDVALUE('output'[Role])
VAR __vInflationRates =
FILTER(
ALL('InflationForecast'),
'InflationForecast'[Country] = __SelectedCountry &&
'InflationForecast'[Year] > YEAR(TODAY()) &&
'InflationForecast'[Year] <= YEAR(TODAY()) + __SelectedYears
)
VAR __BaseSalary =
CALCULATE(
SUM('output'[TCOW per FTE]),
'output'[Role] = __SelectedRole
)
VAR ProjectedSalary =
__BaseSalary * PRODUCTX(
__vInflationRates,
1 + 'InflationForecast'[Rate]
)
VAR __Result =
IF(
__SelectedYears = 0,
__BaseSalary,
IF(
ISBLANK(__SelectedYears) || ISBLANK(__SelectedCountry) || ISBLANK(__SelectedRole),
BLANK(),
ProjectedSalary
)
)
RETURN
__Result
Okay, after some time I have figure it out, and this measure is working fine just in case somebody would be interested into it:
Projected Salary =
VAR __SelectedYears = SELECTEDVALUE('Years of Inflation'[Years of Inflation])
VAR __SelectedCountry = SELECTEDVALUE('output'[Country])
VAR __SelectedRole = SELECTEDVALUE('output'[Role])
VAR __vInflationRates =
FILTER(
ALL('InflationForecast'),
'InflationForecast'[Country] = __SelectedCountry &&
'InflationForecast'[Year] > YEAR(TODAY()) &&
'InflationForecast'[Year] <= YEAR(TODAY()) + __SelectedYears
)
VAR __BaseSalary =
CALCULATE(
SUM('output'[TCOW per FTE]),
'output'[Role] = __SelectedRole
)
VAR ProjectedSalary =
__BaseSalary * PRODUCTX(
__vInflationRates,
1 + 'InflationForecast'[Rate]
)
VAR __Result =
IF(
__SelectedYears = 0,
__BaseSalary,
IF(
ISBLANK(__SelectedYears) || ISBLANK(__SelectedCountry) || ISBLANK(__SelectedRole),
BLANK(),
ProjectedSalary
)
)
RETURN
__Result
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 63 | |
| 41 | |
| 39 | |
| 38 | |
| 38 |