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
Anonymous
Not applicable

Catch slizer selection when not used as filter

Hi,

 

I wish to catch the selection in the slizer enventhough the slicer is not filtering the target context. In the image below i would like to take the selection in the slicer and limit the displayed values to all months before the selected valule. How would you do that?

 

Anmærkning 2019-10-23 121534.png

2 REPLIES 2
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

At first, you should use correct format. "CY2014-Aug" is text type value and you cannot sort directly.

 

Solution1 :
You could change it to be number or date type( like "201408" or "08/01/2014").

Then you could use slicer to get the range.

2-1.PNG

 

Solution2 :

You could also create a new table with the month column(number or date type) and use it as your slicer.

Then use SELECTEDVALUE() function to get your selection with a measure and use CALCULATE() function to get value before your selected value.

 

Solution3 :

If your origin table has a correct sort, you could add an index column and use it as a slicer.

2-2.PNG

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
Anonymous
Not applicable

Hi,

The slizer is required to have Month-Year periods listed and it is required to be a drop-down. I want to use the selection to limit the time-axis but has yet to find a viable solution to catch the selection in the chart . SELECTEDVALUE will not give you the value of the slizer if the slizer is not in context as shown. And,  if it is in context the time-axis will be limited to show the selcted month.

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.