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
Syndicate_Admin
Administrator
Administrator

Create calculations with unrelated tables

Good morning.

I'm writing to you because I need help with Power BI.

I have a model with many tables but for the calculation I need 3 are involved:

The first is a table of properties where the ID and property name fields are located.

The second, related to the first from 1 to many, contains visitor data. This is a table created by joining two other tables and has calculated fields such as the number of visitors to each property, the property ID, date, zone, access, etc

The third table that is related to the first also from 1 to many and contains data of each property such as ID, consumption, date, etc.

With all this, I need to create a calculation of consumption per visitor but when I create it, since they are not related, the measures I create do not come out with correct data. I have also tried creating an intermediate table that contains the fields I need from tables 2 and 3 but it does not come out correct either.

How can I do it?

Thank you very much in advance

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Syndicate_Admin ,

 

Based on your description, I have created the following model which allows me to calculate the consumption per visitor by using the following formula.

vkongfanfmsft_1-1721984049549.png

 

ConsumptionPerVisitor = DIVIDE([TotalConsumption], SUM(Visitors[TotalVisitors]), 0)

 

vkongfanfmsft_0-1721983996165.png

 

Best Regards,
Adamk Kong

 

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

2 REPLIES 2
Anonymous
Not applicable

Hi @Syndicate_Admin ,

 

Based on your description, I have created the following model which allows me to calculate the consumption per visitor by using the following formula.

vkongfanfmsft_1-1721984049549.png

 

ConsumptionPerVisitor = DIVIDE([TotalConsumption], SUM(Visitors[TotalVisitors]), 0)

 

vkongfanfmsft_0-1721983996165.png

 

Best Regards,
Adamk Kong

 

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

 

amitchandak
Super User
Super User

@Syndicate_Admin , with common tables like property id, date and another you can analyze data for a measure at the total level or common dimension level 

 

m1= divide(Sum(Table3[consumption]), countrows(Table2))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.