Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors