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
Lorraine
Helper I
Helper I

Creating a Slicer

Hi all,

 

This is a line and stacked column visual I'm working on right now:

Screenshot (5).png

 

 

For the line values I've created three measures and given them the values 58, 61, and 67. Is there a way to create a slicer that will allow me to select a line measure value and have only the selected line display with the column values?

 

Thanks in advance!

1 ACCEPTED SOLUTION
dani0010
Frequent Visitor

You could create a table like this:

 

UI Compare Line = DataTable(
"Label", STRING, 
"Value", INTEGER 
,{ 
{"Keyword 1","61"}, 
{"Keyword 2","58"}, 
{"Keyword 3","67"} 
} 
)

 

Bind that Label field to your slicer.

 

Create a measure like this:

UI Compare Line Selected = max('UI Compare Line'[Value])

Use the measure as the line value in your chart.

View solution in original post

4 REPLIES 4
dani0010
Frequent Visitor

You could create a table like this:

 

UI Compare Line = DataTable(
"Label", STRING, 
"Value", INTEGER 
,{ 
{"Keyword 1","61"}, 
{"Keyword 2","58"}, 
{"Keyword 3","67"} 
} 
)

 

Bind that Label field to your slicer.

 

Create a measure like this:

UI Compare Line Selected = max('UI Compare Line'[Value])

Use the measure as the line value in your chart.

@dani0010 Thank you so much, that worked perfectly! You're a genius

@dani0010 Thanks! This makes sense, but how do I create a table in Power BI? I've only been importing them.

datatable.png

 

@Lorraine You're in for a whole new world!

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.