cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jkenne01 Frequent Visitor
Frequent Visitor

Re: How to display different measures using a selector

Thanks for the reply but FORMAT returns a text value so my measures would be converted to text. So this won't work unfortunetly. 

Highlighted
dkay84_PowerBI New Contributor
New Contributor

Re: How to display different measures using a selector

Are your measures actual measures or calculated within the SWITCH measure? I wonder if they are separate measures each formatted themselves, and the SWITCH just calls them, if the formatting will be honored.
jkenne01 Frequent Visitor
Frequent Visitor

Re: How to display different measures using a selector

Hi,

 

Thanks again for the reply. The measures are real measures. One to 1 decimal place, the other to 4 decimal place. My issues seems to bethat I need to format the field in the table that will display the measure based on the selection. And the overides the format of the individual measure.

 

The measure I am displaying is :

 

 Impacts/TVR = IF(ISCROSSFILTERED('Measure Dimensions'[Measure]),SWITCH( TRUE(), VALUES('Measure Dimensions'[Measure]) = "Impacts",[Impacts],VALUES('Measure Dimensions'[Measure]) = "TVR",[TVR],BLANK()),BLANK())

 

Impacts is 1 decimal place. TVR is 4 decimal places. If I set the Impacts/TVR measure to General (Auto) it actual displays 4 decimals for Impacts and 2 for TVR. Which is odd!

 

 

dkay84_PowerBI New Contributor
New Contributor

Re: How to display different measures using a selector

Have you set formatting in the table itself? Maybe set it to default/auto and see if it will detect the formatting of the measures
Anonymous
Not applicable

Re: How to display different measures using a selector

I'm having the same problem where I have to choose one data type for my entire group of measures. For example, I can't use decimal for one measure, and integer for another. It's either all decimal or all integer.

 

Has anyone found a solution for having a metric selector slicer that allows different data types for different measures?

smudgedpolaroid Regular Visitor
Regular Visitor

Re: How to display different measures using a selector

Hi DataPerson,

 

Have you tried  solution?
https://1drv.ms/u/s!AtDlC2rep7a-jkiRG_LyHcv0RSXI

It works for me now.  I've created a "Dynamic" query and then used the DAX "Switch" command to pre-select the set of measures.

 

Anonymous
Not applicable

Re: How to display different measures using a selector

This is perfect!

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 470 members 4,182 guests
Please welcome our newest community members: