cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Calculations in a bar chart and plot a new line with bar chart values

I have to create a chart as below, I have created the bard chart, the red and green bars. I need help creating the blue line, the LOB  calculations to be done and plot the blue line depends on the value of the LOB. 

 

Appreciate any help!!! thanks in advance.

 

question1.png

3 REPLIES 3
Highlighted
Microsoft
Microsoft

Re: Calculations in a bar chart and plot a new line with bar chart values

Hi @Karthi,

 

That case, you can create a measure to calculate the values of LOB. Then, insert a "Line and clustered column chart" visualization to display data (columns and measure).

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Frequent Visitor

Re: Calculations in a bar chart and plot a new line with bar chart values

Thank you for the reply. But how do we do that? we will have to look at row 1 Qty(or Demand) as my first LOB. for the 2nd LOB I will have to subtract Supply from row2 from Demand from row1 (Demand row1- Supply Row2)  or The  LOB from row1 - Supply from row2 .   We are not doing this calculation in single row, but will have to refer 2 rows for the calculation.  I am not sure how this can be coded? Could someone help me with this code? 

 

Thanks.

Karthi. 

Highlighted
Frequent Visitor

Re: Calculations in a bar chart and plot a new line with bar chart values

It is adding or subtracting QTY by row by looking at the demand/supply. If "S" subtract and if 'D' then add Qty and go on.....on...until end of rows. 

 

I need the code for this.

Helpful resources

Announcements
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Don't miss the Power BI Dev Camp this week!

August Community Highlights

Check out a full recap of the month!

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.