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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
1241pm
Frequent Visitor

Difference between lines in Graph

hello,

 

I have a graph in power bi for values for 10 business measures for 2 accounts.  The graph has 2 slicers, one for the business measures and one for the 2 accounts to choose from.  My two accounts are in a seperate table than my values table and are linked through a relationship. I need to subtract the difference between the 2 accounts to create a 3rd account for each business measure. For example, if my business measure is "Expenses", I need to find the difference between "Expenses Total Acct" and "Expenses Seperate Acct" to greate a 'Expenses General Acct" line. Any ideas for how I would code this to create a new measure/column that references both tables?

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@1241pm,

 

The new measure/column’s creation depends on relationship. You may try RELATED Function and RELATEDTABLE Function.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.