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

How to show only 1 measure/dax

I am trying to design feature that allows users to toggle between the below measures

1. Total Revenue vs. LY or 

2. Total Revenue vs. Plan 

 

I can't seem to allow slicers to be filtered and a search through PowerBI Desktop help hasn't yielded specific answers. 

Can anyone help ? >< 

 

I'm trying to let users select to see either thru a slicer.
1. vs. Plan OR 

2. vs LY 

 

PowerBI Slicerhelp1.PNGPowerBI Slicerhelp2.PNG

1 ACCEPTED SOLUTION
Hei_aQing
Helper I
Helper I

Hi @Jerry1985 

 

Try the field parameter, parameterize the two measures and drag them into the matrix of values.

Let report readers use field parameters to change visuals (preview) - Power BI | Microsoft Docs

View solution in original post

4 REPLIES 4
v-henryk-mstf
Community Support
Community Support

Hi @Jerry1985 ,

 

Try like below:

test =
IF (
    SELECTEDVALUE ( 'Table (2)'[slicer] ) = 1,
    [test1],
    IF ( SELECTEDVALUE ( 'Table (2)'[slicer] ) = 2, [test2], [test3] )

vhenrykmstf_0-1656672182994.png

vhenrykmstf_1-1656672215379.png

If the problem is still not resolved, please provide detailed error information and test data. Looking forward to your reply.


Best Regards,
Henry


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

Hei_aQing
Helper I
Helper I

Hi @Jerry1985 

 

Try the field parameter, parameterize the two measures and drag them into the matrix of values.

Let report readers use field parameters to change visuals (preview) - Power BI | Microsoft Docs

Thanks for this. This seemed like the easiest solution to apply since the features were already loaded on powerbi 

truptis
Memorable Member
Memorable Member

Hi @Jerry1985 ,

I am not very clear with your requirement but I guess you want to filter your data on the basis of Plan % or on LV% based upon user's selection?
If yes, then you can try to iuse Bookmarks. eg - create 2 buttons - one for Plan % and other for LV%. and then make bookmarks. 

@Jerry1985 -> If this helps you then please hit the thumbs up & mark it as a solution. Thanks.

Helpful resources

Announcements
August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 24 without aka link and time 768x460.jpg

Ted's Dev Camp - July 28, 2022

Watch Session 24 of Ted's Dev Camp along with past sessions!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors