Forum Discussion
Button/Slicer for using different filter on a stacked bar chart
- 7 years ago
Hi jcolby ,
Actually, you can achieve this using the filter pane:
If you'd like to use the slicer, please refer to the pbix here: https://wicren-my.sharepoint.com/:u:/g/personal/dinaye_wicren_onmicrosoft_com/EYRoWI7UudhDvZwcfsf7D9UB5cs05lGxaJsCNFXjML6sMw?e=0A4FjB
(Note the measure is not blank)
Best regards,
Dina Ye
Hi jcolby ,
Actually, you can achieve this using the filter pane:
If you'd like to use the slicer, please refer to the pbix here: https://wicren-my.sharepoint.com/:u:/g/personal/dinaye_wicren_onmicrosoft_com/EYRoWI7UudhDvZwcfsf7D9UB5cs05lGxaJsCNFXjML6sMw?e=0A4FjB
(Note the measure is not blank)
Best regards,
Dina Ye
- jcolby7 years ago
Helper I
Hi v-diye-msft
Excellent, thank you - the slicer your created is exactly what I need.I'm missing something though.
The new table, with the desired filter selections - is there something special about creating/configuring that?
Theres no relationships and its just text?
When I add additional options or change the numbers in edit source it doesnt filter anything and breaks what you've setup, even if i just flip an operator, "<" to ">". Or even if I change 100 to 99.Trying to reverse engineer it, can you see what I'm missing?
- Enter Data
- Type out the desired filter options you want in a single column: "Measure < 100" "Measure >= 100"
- New Slicer visual with the filter column
- Visual filter on bar chart - Measure not blank
- jcolby7 years ago
Helper I
ahhhhh, wasnt paying attention - didnt see the measure (i thought it was my measure lol)
Thank you!
- jcolby7 years ago
Helper I
Tweaked your solution a bit and used a SWITCH statement
Effective Rate (Filtered) = SWITCH( SELECTEDVALUE('Filters'[ Effective Rate]), "< 100", CALCULATE( [Effective Rate #], FILTER(Companies,[Effective Rate #] < 100) ), ">= 100", CALCULATE( [Effective Rate #], FILTER(Companies,[Effective Rate #] >= 100) ), [Effective Rate #] )Thanks again, pushed my understanding wrestling with this problem