cancel
Showing results for 
Search instead for 
Did you mean: 
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

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!

@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
Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors