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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Change Matrix table visual column dynamically

I have sum of sales for three years 2019,2020,2021 when i enter 2022 i need to display 2020,2021,2022 but here getting sum of sales by using measure how can i change measure name dynamically when i enter into 2022 year.

ex now i have like this

Sreenivasula_0-1630216731444.png

I want like this

Sreenivasula_1-1630216759965.png

 

 

 

 

 

 

 

4 REPLIES 4
Anonymous
Not applicable

Hi @Anonymous ,

 

I don't think it's possible. You requirement sound like Power BI automatically add and remove measure into the visual.

 

Best Regards,

Jay

VahidDM
Super User
Super User

Hi @Anonymous 

 

Set a TOP N  filter on Year column to show the top 3 years.

 

VahidDM_0-1630230688589.png

 

Did I answer your question? Mark my post as a solution!

Appreciate your Kudos VahidDM_1-1630230717915.png !!

Anonymous
Not applicable

Actually am taking years as measure,because i need to fetch one year data from another table also,so now how can i change the measure value

 

Hi @Anonymous 

 

Could you please share your model here? Sample of data or the best way is to share the sample Power Bi file *.PBIX format.

 

Try to add column to the table by using that measure code, then use column or measure in the filter.

 

Did I answer your question? Mark my post as a solution!

Appreciate your Kudos VahidDM_0-1630299060539.png !!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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