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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
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.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.