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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
jamescosten
Helper I
Helper I

Line Graph Sum Value

I have a line graph which is showing lines as Open & Closed totals. What i need is a third line that shows the difference between the two values. Open =10, closed =1 then the new line should show a value of 9 and is shown on the graph. Is this possible?

 

jamescosten_0-1657122531192.png

 

1 ACCEPTED SOLUTION

@jamescosten 

I would create 3 measures:

JamesHarpin_0-1657207773930.png

JamesHarpin_1-1657207788608.pngJamesHarpin_2-1657207803334.png

Then put into a line chart:

JamesHarpin_3-1657207819519.png

 

 

View solution in original post

12 REPLIES 12

Create new calculated column

Satya_Bhamidipa_0-1657198970485.png

 

 

Use 3 columns

 

Satya_Bhamidipa_1-1657198970486.png

 

 

Check result

 

Satya_Bhamidipa_2-1657198970488.png

Please let me know if you need more inputs 

James-Harpin
Resolver IV
Resolver IV

@jamescosten the table name that the closed and open columns are in, if these are measures you do not need the table name just the measure names

jamescosten_0-1657191852536.png

Getting the above error. The table is Non Conformance Database, but the column is status and the options are Open & Complete which is a choice field.

@jamescosten Would you be able to send an example of your table structure

jamescosten_0-1657199895817.png

 

@jamescosten what are you using for the axis/values in your line chart?

jamescosten_0-1657206262381.png

 

@jamescosten 

I would create 3 measures:

JamesHarpin_0-1657207773930.png

JamesHarpin_1-1657207788608.pngJamesHarpin_2-1657207803334.png

Then put into a line chart:

JamesHarpin_3-1657207819519.png

 

 

James-Harpin
Resolver IV
Resolver IV

Hello @jamescosten 

Try creating a calculated column with the following DAX formula:

Difference =
('Table (2)'[Open]) - ('Table (2)'[Closed])
JamesHarpin_0-1657123532808.png

 

So i have the new column, i have the above expression but whta is table meant to represent? 

Create new calculated column

Satya_Bhamidipa_3-1657199273483.png

 

 

Use 3 columns

 

Satya_Bhamidipa_4-1657199273486.png

 

 

Check result

 

Satya_Bhamidipa_5-1657199273489.png

Pls check above option and let me know if you need more inputs 

The table does not have a column with open or closed, it is one column with choices. The formula doesnt work.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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