Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I have the data like below,
I would like add a slicer showing Price and Percentage , Based on the selection from slicer col from table/Matrix should hide / show ... lets say i have selected Price then expected output is like below. ( I am able to acheive like values are hiding/showing based on my selection but not like below)
I am able to achieve like below if selection is on price from slicer but pecentage col should hide.
Solved! Go to Solution.
Hi @Mani1205 ,
Go to query editor>select column "Percentage" and "Price",choose "unpivot the columns";
Then create a slicer table as below:
Slicer = DISTINCT('Table (2)'[Category])
And a measure as below;
Measure 2 = IF(ISFILTERED('Slicer'[Category]),CALCULATE(MAX('Table (2)'[Value]),FILTER('Table (2)','Table (2)'[Category]=SELECTEDVALUE(Slicer[Category]))),MAX('Table (2)'[Value]))
And you will see:
For the related .pbix file,pls click here.
Would the above slicer work around still work if there was data from two separate queries in the table and measures in the table also?
Hi @Mani1205 ,
Go to query editor>select column "Percentage" and "Price",choose "unpivot the columns";
Then create a slicer table as below:
Slicer = DISTINCT('Table (2)'[Category])
And a measure as below;
Measure 2 = IF(ISFILTERED('Slicer'[Category]),CALCULATE(MAX('Table (2)'[Value]),FILTER('Table (2)','Table (2)'[Category]=SELECTEDVALUE(Slicer[Category]))),MAX('Table (2)'[Value]))
And you will see:
For the related .pbix file,pls click here.
@Mani1205 , for show hide you might have use bookmark.
https://radacad.com/bookmarks-and-buttons-making-power-bi-charts-even-more-interactive
There is another option but it replaces the value in existing column
Hi
Try below
Showvalue =
SWITCH (
TRUE (),
SELECTEDVALUE ( slicer[column] ) = "Price", [PriceMeasure],
SELECTEDVALUE ( slicer[column] ) = "Percentage", [PercentageMeasure],
BLANK ()
)
Thanks,
Venkata Nalla
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
145 | |
85 | |
66 | |
52 | |
48 |
User | Count |
---|---|
215 | |
90 | |
83 | |
67 | |
59 |