Forum Discussion
Combo Chart with multiple lines
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,
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.
- IPGeorgiev6 years agoHelper III
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