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
SecretChimpanze
Frequent Visitor

Calculated measure for tables with different data intervals

Hi,

 

I have two tables - Table A has daily data and Table B has weekly data. They have two common fields - Product and Week Ending.

 

Problem: I need a Calculated Measure to  get the SUM of the Daily data from Table A and divide that by the value in Table B for the corresponding Product and Week Ending period. Is this possible?  

 

So something like this --> Table A / Table B where Product & Week Ending matches

2024-02-12 20_30_05-Book4 - Excel.png

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @SecretChimpanze 

 

No relationship between the two tables

vxuxinyimsft_1-1707812765807.png

 

You can create a measure as follows.

Measure = DIVIDE(MAX(TableA[Volume]), CALCULATE(MAX(TableB[Volume]), FILTER(TableB, [Product] = SELECTEDVALUE(TableA[Product]) && [Weeking Ending Date] = SELECTEDVALUE(TableA[Week Ending Date]))))

 

vxuxinyimsft_0-1707812708655.png

Is this the result you expect?

 

Best Regards,
Yulia Xu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @SecretChimpanze 

 

No relationship between the two tables

vxuxinyimsft_1-1707812765807.png

 

You can create a measure as follows.

Measure = DIVIDE(MAX(TableA[Volume]), CALCULATE(MAX(TableB[Volume]), FILTER(TableB, [Product] = SELECTEDVALUE(TableA[Product]) && [Weeking Ending Date] = SELECTEDVALUE(TableA[Week Ending Date]))))

 

vxuxinyimsft_0-1707812708655.png

Is this the result you expect?

 

Best Regards,
Yulia Xu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors