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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

DAX switch between two ways of calculating measure.

Hi.

I have two measures for calculating sales margins, where one applies some corrections that might be useful.

I am wondering if it is possible to give the user the ability to choose which of the two ways he/she wants to use to calculate the sales margin in a report?

I am using analysis services database with live connection. 

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@Anonymous

 

You can see if the discussion in below subject can help you. Thanks

 

https://community.powerbi.com/t5/Desktop/how-to-make-column-optional-selective/td-p/593833





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

Proud to be a Super User!




View solution in original post

4 REPLIES 4
ryan_mayu
Super User
Super User

@Anonymous

 

You can see if the discussion in below subject can help you. Thanks

 

https://community.powerbi.com/t5/Desktop/how-to-make-column-optional-selective/td-p/593833





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

Proud to be a Super User!




Anonymous
Not applicable

Thanks. 
Are there any work-arounds to avoid having to make that extra table with the units in the datamodel ?

@Anonymous

 

Maybe you can try create two pages and use bookmark to switch the pages. In this way, you need to prepare two sets of visulizations.

 

Thanks





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

Proud to be a Super User!




jthomson
Solution Sage
Solution Sage

Yep, have a search on using a disconnected table to do so. Basically you put the options into a slicer, and then pull that selected value into a measure as a variable, which then returns the output of different measures based on what the variable is

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors