Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
klehar
Helper V
Helper V

Conditional Slicers values for different years

Hi,

 

I have a peculiar problem. Heres a simple stripped down dataset

 

The green columns are my input.

Forecast(Red) is what I want as a slicer at an yearly level so that the user can select one forecast value for 1 year.

 

I want ideas around how should i have my Forecast slicer. 

Should the forecast value come from a single column (looks difficult since it would have a different  value for different years) ?

 

 

I cant afford to have 10 forecast value slicers for each year as in the actual dataset I have 10 years of data along with 5 such parameters including forecast which means I'll need to bring 50 slicers on the table.

 

 

Based on the forecast value, The New Value(Red) is calculated as Net Profit * (Forecast/100) + Net Value (that I can handle if the above is figured out)

DateGross ProfitNet ProfitForecastNew Value
1/1/20201155%5.25
2/1/202042105%10.5
3/1/20207715%1.05
4/1/202077105%10.5
5/1/202097105%10.5
6/1/20206975%7.35
7/1/20201635%3.15
8/1/20205025%2.1
9/1/20206725%2.1
10/1/20201565%6.3
11/1/20202365%6.3
12/1/20209055%5.25
1/1/20219626%2.12
2/1/20212446%4.24
3/1/20218086%8.48
4/1/20215376%7.42
5/1/20219546%4.24
6/1/20214676%7.42
7/1/20219446%4.24
8/1/20216486%8.48
9/1/202175106%10.6
10/1/20218546%4.24
11/1/20219576%7.42
12/1/20216176%7.42

 

 

Finally, I want to add the New value on this matrix just below the Net Profit.

 

klehar_1-1618844853092.png

 

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @klehar ,

As far as I know, if you want the forecast value come from a single column, you have better to create multiple what-if parameters for each year such as 10 parameters for 10 years and use switch() statement to do the calculations.

About what-if parameters, please refer: Create and use what-if parameters to visualize variables in Power BI Desktop 

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yingjl
Community Support
Community Support

Hi @klehar ,

As far as I know, if you want the forecast value come from a single column, you have better to create multiple what-if parameters for each year such as 10 parameters for 10 years and use switch() statement to do the calculations.

About what-if parameters, please refer: Create and use what-if parameters to visualize variables in Power BI Desktop 

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.