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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

multiple line graph with overall total based on slicer selection criteria

Hi Experts

 

I have cannot see the wood for the trees, here not sure if this can be done, see pbix file. 
1. I have created a total measure which gives me the overall total value for the status points (correct) 
2. i have a measure called selcetedvlaues which should allow me to plot the selected status against the total value which works fine for a single data point. 
3. i have two measure status A and B which give me the correct plots for the single selected data point against grand total line, but i do not want to create 50 measures for all my products. 
can this not be done dynamically based on selelcted from slicer.

 

Capture.PNG

 

 

 

 

 

 

 


https://www.dropbox.com/s/86i4f108hb4v5w3/line_and_bar.pbix?dl=0

1 ACCEPTED SOLUTION
v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

You can create measure using ALLSELECTED function like DAX below.

 Status_selected = CALCULATE(SUM('Table (2)'[amount]), ALLSELECTED('Table (2)'[status]))

 

Best Regards,

Amy

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

You can create measure using ALLSELECTED function like DAX below.

 Status_selected = CALCULATE(SUM('Table (2)'[amount]), ALLSELECTED('Table (2)'[status]))

 

Best Regards,

Amy

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

hi AMy 

taht dax measure will not give me a plot for a and b and the total. i need to be able to show three lines on plot.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.