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

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

Reply
buck1327
Frequent Visitor

Line chart with selected customers only

I have a line chart which show the sales of customers (over 1K). I have multiple slicers such as year, month, region etc, and one of slicer is customers which I can select a few customers (e.g. customer A, B and C). The line chart and slicers works very well. Now I need to show the sales of all customers at the same char, along with selected customers (e.g. customer A, B and C). How can I do that? Thanks

 

 

2 ACCEPTED SOLUTIONS
Ashish_Mathur
Super User
Super User

Hi,

See if my solution in the attached file helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

Yes. To answer your question "where is the "total sales all customer" created?" that's up for you know, what goes there is the column or sum measure you are using to represent the numerical values. You won't need to include any selected customers in the formula, by using your filters and slicers, your measure will consider those as part of the row context.





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





View solution in original post

6 REPLIES 6
Ashish_Mathur
Super User
Super User

Hi,

See if my solution in the attached file helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you @Ashish_Mathur . Wonderful demo

Thank you.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
ray_aramburo
Super User
Super User

You can use a formula like this:

Total Sales All Customers = CALCULATE( SUM(SalesTable[SalesValuesColumn]), ALLEXCEPT('Customers Table', 'Customers Table'[Customer)))

Just keep in mind that if your chart has additional layers of segmentations, you'll need to add those fields in the ALLEXCEPT function (for example, the year column, the month, etc.)





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





Thank you @ray_aramburo. Are you talking about create a new measure ? where is the "total sales all customer" created? those selected customers are dynamic, could be customer A, B,C or X, Y, Z depending on the user. So I am a little bit lost here how can I put the customers selected by slicers in the formula.

Yes. To answer your question "where is the "total sales all customer" created?" that's up for you know, what goes there is the column or sum measure you are using to represent the numerical values. You won't need to include any selected customers in the formula, by using your filters and slicers, your measure will consider those as part of the row context.





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors