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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Helper I
Helper I

Line chart with overall total line

Hi all,


I'm creating a line chart with

  distinct series(country sales share)


  a total line which depicts the share for all the countries whichever countries are filtered


The following is the Excel image.

1. Country series and overall total share.


2. US trend with Total line (Total share is for all the countries which are same values as No.1)





How can I create the PowerBI report as above?

I have an idea that

  add records with "total" country to the existing datasource (which is for each country)


  specifiy the datasource on Line chart as if the "total" is one of the countries.


The datasource could be confusing, I would ask you for any better ideas.


Best regards,


Community Support
Community Support

Hi, @shtak 

Please try the following steps:

1. Remove the use of the 'Legend' field and create separate metrics for each country and 'Toatl'

Japan line = CALCULATE(SUM('Table'[Share]),'Table'[Country]="Japan") 
US line = CALCULATE(SUM('Table'[Share]),'Table'[Country]="US") 
UK line = CALCULATE(SUM('Table'[Share]),'Table'[Country]="UK") 
Total line = CALCULATE(Average('Table'[Share]),ALL('Table'[Country])) 

2. New a field Parameter (Available in latest version of PowerBI Desktop)



3. Apply the parameter to Y-axis


Best Regards,
Community Support Team _ Eason

Hi v-easonf-msft,


Thank you for your kind reply with a latest feature.


The field parameter feature is very interesting and useful.

In some cases, the feature is available, but this time, the series are actually prducts (I took up 

countries as easy examples, which lead to your solution), which change on an irregular base.

Hopefully I could avoid adding the series(field parameters).




Hi, @shtak 

Is it convenient to provide a sample to cloud storage for further research?

Best Regards,
Community Support Team _ Eason


Helper I
Helper I

Excuse me,,, the chart images were inconsistent.

The followings are correct ones.


Country shares with total share.



A country filtered with total share. 




Helpful resources

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.