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 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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 35 | |
| 34 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 137 | |
| 102 | |
| 68 | |
| 66 | |
| 64 |