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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors