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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Kyle1
Regular Visitor

Filtering Line Charts

Say if I have a sample data set

CategoryBridgeValue
ABridge 12
BBridge 13
CBridge 27
BBridge D 14
CBridge D 28
BBridge D 28
CBridge 19
ABridge D 11
ABridge 23
ABridge D 25
BBridge 27
CBridge D 14

 

How can I make a line chart to show 2 values:

Q1 = Sum(Value where Bridge=Bridge 1)/Sum(Value where Bridge = Bridge D 1) * -1

Q2 = Sum(Value where Bridge=Bridge 2)/Sum(Value where Bridge = Bridge D 2) * -1

 

That is also filterable with a slicer by Category?

 

Currently I can make 2 calculated columns to place in a line chart, but it doesn't update with slicers.

Or I can make 2 calculated measures, but those can't be placed in a line chart

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Kyle1,

Create a disconnected table as show in attached PBIX file.

Regards,
Lydia

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

@Kyle1,

Create a disconnected table as show in attached PBIX file.

Regards,
Lydia

Kyle1
Regular Visitor

Say if I have a sample data set

CategoryBridgeValue
ABridge 12
BBridge 13
CBridge 27
BBridge D 14
CBridge D 28
BBridge D 28
CBridge 19
ABridge D 11
ABridge 23
ABridge D 25
BBridge 27
CBridge D 14

 

How can I make a line chart to show 2 values:

Q1 = Sum(Value where Bridge=Bridge 1)/Sum(Value where Bridge = Bridge D 1) * -1

Q2 = Sum(Value where Bridge=Bridge 2)/Sum(Value where Bridge = Bridge D 2) * -1

 

That is also filterable with a slicer by Category?

kohlivinayak
Resolver I
Resolver I

Hi @Kyle1

 

I am not sure exactly what issue you are facing, but according to the requirement you need to create a measure not a column in this case.

 

Second, we can add measure to a line chart.

 

And you are trying to plot these values against which column on the x-axis ??

 

Thanks

Vinayak

Hi @kohlivinayak,

 

Thanks for the reply. I wasn't aware that you can place more than one measure on a line chart. I would want the first measure to be named "2016 Q4" and the 2nd measure to be named "2017 Q1" on the x axis. These categorizations are not included in my dataset. 

 

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors