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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
sathishsam
Helper II
Helper II

Show total value in line chart when nothing is selected.

I have a line chart which shows a comparision of data of selected Products (Slicer). What i want to do is if nothing is selected from the slicer, then it has to show the sum of all the product data, else it has to show selected product lines in the chart.

I want to achieve this without using Bookmarks, coz with this, the tooltips doesn't work like the way I wanted.

4 REPLIES 4
Greg_Deckler
Community Champion
Community Champion

@sathishsam Having some trouble visualizing what you are trying to do. Any chance you can share the PBIX file or sample data so that the situation can be replicated?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Sorry, i cannot share the PBIX, here is the illustration 

1. When I select 3 Products

sathishsam_0-1694356488206.png

2. When I dont selelect any product

sathishsam_1-1694356540569.png

 

Since your products are in the legend field, I think you need to add a dummy product called "All Products" or "Total" or something. Then update your DAX measure for when that value is selected, sum the entire value column without product context. 

How would you do that?

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors