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
jkhan
Helper III
Helper III

Slicer Option

Hi, 

Please help to achieve below requirement for Slicer. 

 

We have requirement for Slicer. Suppose we select Project Name in Slicer by default other slicer is showing All. 

 

1.JPG

 

But we need to show respective Values of other Slicer instead of All in regards of Project Name Slicer. 

 

Like below in instead of ALL 3.JPG

 

 Please help to achieve this requirement. 

 

Thanks & Best Regards

Jamsher 

12 REPLIES 12
jkhan
Helper III
Helper III

@PaulDBrown  in my case all Slicer value is from same table. RELATEDTABLE  we can use if we have two table involved and relationship between them. 

 

Thanks & Regards

Jamsher

jkhan
Helper III
Helper III

Thanks @PaulDBrown  for your reply. I will work on it and update accordingly. 

 

Thanks & Best Regards

Jamsher

PaulDBrown
Community Champion
Community Champion

If you want the slicers to show the values available based on a selection, you can use a measure to filter the slicers. Something along the lines of:

Filter slicers =
COUNTROWS ( RELATEDTABLE ( 'Fact Table' ) )

where 'Fact Table' is the table the slicers relate to.

Add this measure to the filter pane of each of the slicers and set the value to greater or equal to 1

Reference:

https://learn.microsoft.com/en-us/dax/relatedtable-function-dax 

(Basically RELATEDTABLE reverses the direction of the relationship in a dimension to fact table)





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






jkhan
Helper III
Helper III

@v-xiaotang Thanks for providing solution. I will try and update accordingly. 

Thanks & Best Regards

Jamsher

v-xiaotang
Community Support
Community Support

Hi @jkhan 

You can try this, create the measure below and put it into visual-level filter,

Measure = 
var _value=SELECTEDVALUE(Table1[Slicer1])
return SWITCH(TRUE(),
_value="a",IF(MIN(Table2[slicer2])<4,1),
_value="b",IF(MIN(Table2[slicer2])<6,1),
_value="c",IF(MIN(Table2[slicer2])<8,1))

vxiaotang_2-1669369982697.png

 

result

vxiaotang_0-1669369858829.png

vxiaotang_1-1669369869664.png

The above is an example, you can change the measure according to your needs.

 

Best Regards,

Community Support Team _Tang

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

Hi @v-xiaotang 

 

If i change the slicer from List to Dropdown it begin to show All.

 

Thanks & Regards

Jamsher
4.JPG

 

Hi @jkhan 

When you expand all, the contents are the same as the contents of the list type slicer. Please see below

vxiaotang_0-1669959236918.png

 

 

Best Regards,

Community Support Team _Tang

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

@v-xiaotang , This is the problem. As per requirement. They need to see 1,2,3 Values instead of ALL in slicer.  

Thanks & Best Regards

Jamsher

jkhan
Helper III
Helper III

Hi,

Any hint please.

Thanks & Regards

Jamsher

jkhan
Helper III
Helper III

Hi,

Any hint please.

Thanks & Regards

Jamsher

jkhan
Helper III
Helper III

Hi 

Thanks for reply. Can we do in slicer. 

Thanks & Regards

Jamsher

daXtreme
Solution Sage
Solution Sage

Slicers can be filtered by measures in response to selections made in other parts of the report, including other slicers. Use Filter Pane of the slicer to do this.

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.