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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
IPGeorgiev
Helper III
Helper III

Combo Chart with multiple lines

Hi all,

 

I need your support and would be really grateful if someone is able to help!

 

Here the current stand:

 

image.png

 

So the Bar charts represent the following:

 

Volumes in absolute numbers for a specific location (for example red is Berlin, yellow is London etc.)

 

The Line chart represents the performance outcome based on the total volumes for all locations in %.

 

So lets say the volume for week 12 is 50 000 the total performance for those 50 000 is 90%, HOWEVER the performance % for each location is different. So thats what I want to show - 6 line charts showing the performance % for each location for the given week.

 

Is this possible?

 

Many thanks in advance!

3 REPLIES 3
v-zhenbw-msft
Community Support
Community Support

Hi @IPGeorgiev ,

 

We can use the following steps to meet your requirement.

 

1. Create measures like this, you can create six measures based on your demands.

 

A = IF("A" in DISTINCT('Table'[country]),CALCULATE(SUM('Table'[values]),'Table'[country] = "A") / CALCULATE(SUM('Table'[values])))

B = IF("B" in DISTINCT('Table'[country]),CALCULATE(SUM('Table'[values]),'Table'[country] = "B") / CALCULATE(SUM('Table'[values])))

C = IF("C" in DISTINCT('Table'[country]),CALCULATE(SUM('Table'[values]),'Table'[country] = "C") / CALCULATE(SUM('Table'[values])))

 

2. Then create a line and stacked column chart, and put the measures to line values. The result like this,

 

combo 1.jpg

 

combo 2.jpg

 

If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?

BTW, pbix as attached.

 

Best regards,

 

Community Support Team _ zhenbw

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

HI @v-zhenbw-msft ,

 

many thanks for the example and the details!

 

I have actually managed to solve this via quick measure and this is how it looks like:

 

Measure = 
CALCULATE(
	[KPI1%],
	'Table1'[Location] IN { "LocationName" }
)

 

And I have created 6 measures like this and this actually solved the problem.

 

Best regards,
Ivan

Greg_Deckler
Super User
Super User

You want six line charts or a line chart with 6 lines?

 

It is likely possible. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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