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
PrinceII
Frequent Visitor

Slicer with graph metrics

I want to use the metrics from the graph in the slider. I want to be able to select multiple metrics. all and 1. I am not able to have it working when selecting or deselecting

 

PrinceII_0-1632119992971.png

 

3 REPLIES 3
amitchandak
Super User
Super User

@PrinceII , each of you measures need to check if it is selected or not

 

example 

Actual Cummulative =

var _ac = countx(filter(allselected(Slicer), slicer[Value] ="Actual Cummulative"),Slicer[Value])

return

if(isblank(_ac), blank(), [Actual Cummulative measure]))

 

 

you need to use formula or measure in place of Actual Cummulative measure

 

@amitchandak

 

Your suggetion I have applied. Using the slicer I get in the graph as in graph 1

 

Graph 1

PrinceII_1-1632137918144.png

 

I expect to have the graphs like this (these have al the measure but I would expect to see only the selected measures that will show like they are in this graph not like bars as it shows now)

PrinceII_2-1632137980910.png

 

 

 

 

Hi @PrinceII 

 

The axis is adjusted automatically according to diaplayed values in the chart. I guess the Target incremental (yellow bar) only has data on May 21st and May 28th, so the axis range is from around May 21st to May 28th. While you show all measures in the chart, the axis range is much larger from May 2021 to Jan 2022. 

 

Do you have a Date table in your model? If not, add a Date table and connect Fact table to Date table on Date columns. Then use the date column from Date table into the chart as Axis field. Right click on the date field in Shared axis box and select Show items with no data. Then use measures as Amit suggested. This should make some changes. 

 

Best Regards,
Community Support Team _ Jing

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.