cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
venkatatalatam
Helper I
Helper I

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 @venkatatalatam ,

 

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

Hi Amit,

 

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

 

Regards,

Venkat

 

Hi @venkatatalatam ,

 

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.

Hi Jay,

 

It worked like a charm. 

You are absolutely a gem.

 

Thanks,

Venkat

 

Hi Jay,

 

Can we have a Slicer based on the Column Value 

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

 

Regards,
Venkat

 

Hi @venkatatalatam ,

 

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
Power BI Show Ep 4 Post Show Carousel.jpg

The Power BI Community Show

Shabnam Watson demos Incremental refresh & Hybrid Tables and Leila Etaati demos Charticulator.

PBI April Release 2022 768x460.png

Check it out!

Click here to read more about the April 2022 updates!

Power BI Dev Camp Session 22 768x460.jpg

Check it out!

Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!