This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Say if I have a sample data set
| Category | Bridge | Value |
| A | Bridge 1 | 2 |
| B | Bridge 1 | 3 |
| C | Bridge 2 | 7 |
| B | Bridge D 1 | 4 |
| C | Bridge D 2 | 8 |
| B | Bridge D 2 | 8 |
| C | Bridge 1 | 9 |
| A | Bridge D 1 | 1 |
| A | Bridge 2 | 3 |
| A | Bridge D 2 | 5 |
| B | Bridge 2 | 7 |
| C | Bridge D 1 | 4 |
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
Solved! Go to Solution.
Say if I have a sample data set
| Category | Bridge | Value |
| A | Bridge 1 | 2 |
| B | Bridge 1 | 3 |
| C | Bridge 2 | 7 |
| B | Bridge D 1 | 4 |
| C | Bridge D 2 | 8 |
| B | Bridge D 2 | 8 |
| C | Bridge 1 | 9 |
| A | Bridge D 1 | 1 |
| A | Bridge 2 | 3 |
| A | Bridge D 2 | 5 |
| B | Bridge 2 | 7 |
| C | Bridge D 1 | 4 |
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?
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.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 32 | |
| 25 | |
| 23 | |
| 22 | |
| 13 |
| User | Count |
|---|---|
| 62 | |
| 47 | |
| 27 | |
| 23 | |
| 19 |