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
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
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.

Top Solution Authors