This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
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
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 30 | |
| 24 | |
| 23 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 61 | |
| 35 | |
| 29 | |
| 23 | |
| 22 |