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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
abhiigt
Frequent Visitor

Replace measures used in Multiple visuals and Pages in Power BI desktop

Hi Folks,

 

I have a .pbix file containing multiple visuals and pages, almost 90 % of visuals use a Measure A, This Measure A needs to be replaced by Measure B. I need a way to do it dynamically instead of manually. As the datasource is cube, creation of columns in not possible and creating new measure would require multiple approvals. 

 

So please let me know incase there is someway to do it.

 

Thanks

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

Don't @abhiigt,


Could you tell me if your problem has been solved? If so, please accept it as the solution. More people will benefit from it.

Best regards
Qin eyelids

View solution in original post

46 REPLIES 46
Syndicate_Admin
Administrator
Administrator

Don't @abhiigt,


Could you tell me if your problem has been solved? If so, please accept it as the solution. More people will benefit from it.

Best regards
Qin eyelids

Syndicate_Admin
Administrator
Administrator

Don't @abhiigt,


Could you tell me if your problem has been solved? If so, please accept it as the solution. More people will benefit from it.

Best regards
Qin eyelids

Anonymous
Not applicable

Hi @abhiigt ,

 


Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it.

 

Best Regards,
Eyelyn Qin

Anonymous
Not applicable

Hi @abhiigt ,

 

How about using SWITCH() to select measures via slicer like this:

Measure =
SWITCH (
    MAX ( 'ForSlicer'[Measure Type] ),
    "Measure A", [Measure A],
    "Measure B", [Measure B]
)

3.29.4.switch.PNG

 

 

More:

https://exceleratorbi.com.au/edit-replace-code-inside-all-dax-measures-using-tabular-editor/

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

themistoklis
Community Champion
Community Champion

Hello @abhiigt ,

 

I beliveve you have to make the relevant changes in the back end. Meaning either in Power Query Editor or in the cube in SQL Server.

 

You you need to check which fields the measure is using. Then change these fields to the ones you want either in Power Query Editor or in cube in SQL Server

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.