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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
eblake
Frequent Visitor

Calculated Field Between Two tabales

I have 2 tables which have the same column headings. One is a snapshot of data taken at the start of the month and one is a snapshot taken at the start of every week.

 

I am looking to have a calculated field that gives the difference between the two tables for one of the columns. I have inserted a screenshot of the table relationships.

 

I am looking to calculate:

'Curr Month Snap FY'[Start of Month Revenue] - 'Curr Week Snap FY'[Start of Week Revenue]

 

Any help would be appreciated.

 

Table Relationship.PNG

1 ACCEPTED SOLUTION
jahida
Impactful Individual
Impactful Individual

Don't think a merge is a good idea here, would create a TON of unnecessary data.

 

I'd recommend making that as a measure (don't know what table to house it in, doesn't matter much):

 

Difference = SUM('Curr Month Snap FY'[Start of Month Revenue]) - SUM('Curr Week Snap FY'[Start of Week Revenue])

View solution in original post

3 REPLIES 3
jahida
Impactful Individual
Impactful Individual

Don't think a merge is a good idea here, would create a TON of unnecessary data.

 

I'd recommend making that as a measure (don't know what table to house it in, doesn't matter much):

 

Difference = SUM('Curr Month Snap FY'[Start of Month Revenue]) - SUM('Curr Week Snap FY'[Start of Week Revenue])

point taken

www.CahabaData.com
CahabaData
Memorable Member
Memorable Member

As i interpret your post:  In query Editor you would merge the tables to join them, and then make a calculated column.

www.CahabaData.com

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

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.