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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
game1
Helper III
Helper III

Perform a calculation between 2 tables

Hello, 

Suppose I have these two tables. I would like to calculate a measure to divide table 1 and table2:

 

 

 

 

1 ACCEPTED SOLUTION
talespin
Solution Sage
Solution Sage

hi @game1 

 

I have joined these two tables on Date column, with one to many relationship and single.

 

talespin_0-1708509098876.png

 

 

Create this measure.

 

Measure =
VAR _Date = SELECTEDVALUE(Table1[Date])
VAR _Price = CALCULATE( SUM(Table1[Price]) )
VAR _Item = CALCULATE( SUM('Table'[Items]) )

RETURN DIVIDE( _Price, _Item)
 
talespin_1-1708509161810.png

 

View solution in original post

1 REPLY 1
talespin
Solution Sage
Solution Sage

hi @game1 

 

I have joined these two tables on Date column, with one to many relationship and single.

 

talespin_0-1708509098876.png

 

 

Create this measure.

 

Measure =
VAR _Date = SELECTEDVALUE(Table1[Date])
VAR _Price = CALCULATE( SUM(Table1[Price]) )
VAR _Item = CALCULATE( SUM('Table'[Items]) )

RETURN DIVIDE( _Price, _Item)
 
talespin_1-1708509161810.png

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.