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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Excel Combo Chart in POWER BI which contains Cluster Column and Line

Dear All,

 

Is there any way we can get a Power BI chart as below. I built it in Excel.  

 

ContractBALSPLSUOPPMIMP
ADC0.4857142860.30.5250.520.680.5714285710.76
SOM0.4285714290.550.2750.380.240.3714285710.32
KDRI0.4285714290.60.3750.40.280.4285714290.48
PPP0.5089285710.5093750.52031250.5250.5450.5053571430.485
HI0.3714285710.450.40.460.440.40.4
TU0.80.80.80.80.80.80.8
TL0.60.60.60.60.60.60.6

 

Capture.PNG

 

 

Regards,

Venkat

 

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

Check the following steps.

1# Select Contract column and click unpivot other columns in Query Editor then click close and apply.

2# Create measures as below.

column = CALCULATE(SUM('Table'[Value]),FILTER('Table','Table'[Contract] in {"ADC","KDRI","PPP","SOM"}))

HI = CALCULATE(SUM('Table'[Value]),FILTER('Table','Table'[Contract] = "HI"))

TL = CALCULATE(SUM('Table'[Value]),FILTER('Table','Table'[Contract] = "TL"))

TU = CALCULATE(SUM('Table'[Value]),FILTER('Table','Table'[Contract] = "TU"))

3# Create visual as below and use Contract as slicer.

4.PNG

Pbix as attached.

 

Best Regards,

Jay

Community Support Team _ Jay Wang

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

 

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

7 REPLIES 7
Syndicate_Admin
Administrator
Administrator

Good

Is there a way in a graph of stacked columns and lines, indicate which axis one of the lines refers to? I attach a graph created in Excel where the Ppto line refers to the axis on the left and the rest of the lines to the axis on the right.

cmartingu_0-1634652341125.png

But in Power Bi I'm not able to represent information in the same way because the PPTO line aligns to the right axis. Attachment capture without the ppto line:

cmartingu_1-1634652611185.png

Data table attachment:

cmartingu_2-1634652764218.png

amitchandak
Super User
Super User

Most nearest is the line and clustered chart. refer 

https://docs.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-combo-chart

https://community.powerbi.com/t5/Desktop/Line-amp-Clustered-Column-chart/td-p/501597

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

Hi Amit,

 

 Thanks for the information. I tried to use Clustered Column Chart but unable to replicate the same chart.

 

Regards,

Venkat

 

Hi @Anonymous ,

 

You can use Line and clustered column chart in Power BI but before you create the visual you need to do some pivot operations in Query Editor.

Please check the following steps as below.

1# Select Contract column and click Transform -> Unpivot other columns.

2.PNG

2# Select Contract column and click pivot column as below.

3.PNG

3# Create Line and clustered column chart as below.

4.PNG

 

Best Regards,

Jay

Community Support Team _ Jay Wang

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

 

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
Anonymous
Not applicable

Hi Jay,

 

It worked like a charm. 

You are absolutely a gem.

 

Thanks,

Venkat

 

Anonymous
Not applicable

Hi Jay,

 

Can we have a Slicer based on the Column Value 

Example : ADC, SOM, KDRI, PPP, HI, TU, TL

 

Regards,
Venkat

 

Hi @Anonymous ,

 

Check the following steps.

1# Select Contract column and click unpivot other columns in Query Editor then click close and apply.

2# Create measures as below.

column = CALCULATE(SUM('Table'[Value]),FILTER('Table','Table'[Contract] in {"ADC","KDRI","PPP","SOM"}))

HI = CALCULATE(SUM('Table'[Value]),FILTER('Table','Table'[Contract] = "HI"))

TL = CALCULATE(SUM('Table'[Value]),FILTER('Table','Table'[Contract] = "TL"))

TU = CALCULATE(SUM('Table'[Value]),FILTER('Table','Table'[Contract] = "TU"))

3# Create visual as below and use Contract as slicer.

4.PNG

Pbix as attached.

 

Best Regards,

Jay

Community Support Team _ Jay Wang

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

 

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.