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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
ShonK20
New Member

Dynamically Changing Column Value Based on Parameter

Hi,

 

I want to create a column SelectedYear. However, I want its value to be dependent on the Paramater the user may choose. Suppose the user chooses 2024, then it should hold 2024 values, if user selects 2023, then it should hold 2023 values.

 

Similarly I can create another column for AnotherYear based on another Parameter. In this way  the user chooses which 2 years are to be compared.

 

Any help on how to achieve this would be appreciated. I only know how to do this in Tableau.

1 REPLY 1
amitchandak
Super User
Super User

@ShonK20 , This is behavior of a measure(Implicit or explicit) in a visual

 

So if you have a table with year and value, put the year on the slicer, and the sum of value on visual, it should work

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.