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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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