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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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