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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
amart
Frequent Visitor

Relationships and Dax Measures Issue

Hey everyone, i'm still relatively new to DAX but i'm getting an issue when i'm trying to roll up the report to give me specifc measures of $ / SF, Tenant Rent and Square Feet. It seems like its an issue with the relationships. Below is an example of the real data i'm working with.

amart_3-1669826568581.png

 

 

Below is what I get when I run the report.

amart_1-1669826129336.png

This is an example of the desired result.

amart_2-1669826152792.png

I would like to

  • Show SF for all units - regardless if it has a tenant associated with it.
  • Show all Tenants $/SF and Rent

Any help on this would be great, I feel like i'm missing something obvious. Thank you!

7 REPLIES 7
v-yueyunzh-msft
Community Support
Community Support

Hi, @amart 

According to your description, you want to get the " $ / SF, Tenant Rent and Square Feet".

For your model relationships, one-to-many is fine.
But for your business logic, I am not very clear, for the data you provided I did not find the corresponding calculation logic.

How to calculate Figure 2 from Figure 1?

vyueyunzhmsft_0-1669861114439.png

For your needs, can you provide us with sample data for each table and the final result you want and your calculation logic?

 

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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

Hey @v-yueyunzh-msft  thank you for your help on this. I'm not exactly sure why i'm still having an issue. Below is the relationships I have setup, everything seems to match yours.

 

amart_0-1670611426587.png

 

 

Everything flows through correctly when I setup the report for re_name anbd unit_name (below).

amart_1-1670611490851.png

 

But when I add in tenant_name, the reports doesnt give me the correct output.

amart_2-1670611553499.png

It seems like its still an issue with the relationships - any other thoughts?

 

Thanks again for your assistance. 

Hi , @amart 

Thanks for your quick response !

According to the relationship in your screenshot, it seems the 'Unit Data' and the 'Tenant Rent' are one-to many relationship and the related field is the [unit_id]?

Another, the 'Tenant Rent' and the 'Tenants' table are also the one-to many relationship.

vyueyunzhmsft_0-1670807870857.png

But for the sample data you provide , it is all the "one-to-one" relationship in my test side:

vyueyunzhmsft_1-1670807884770.png

So i am not fully understand the logic in your tables, can you re provide the complete data of the next two tables in the form of a table, so that they can form a one to many relationship?

 

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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

Hey @v-yueyunzh-msft  thanks again for helping me work through this. 

 

Yes, 'Unit Data' and 'Tenant Rent' are both one-to-many relationships on the 'unit_id' column.

 

For the limited sample data I gave you, the 'Tenant' and 'Tenant Rent' tables have only a one-to-one relationship, but in the real dataset they will have multiple rows with an additional date dimension. For this example it doesnt seem like thats the constraining issue. 

 

When I look at create a query for re_name / unit_name / tenant_name / Tenant: Rent (measure), it gives me all of the tenants with their rent. But when I add Square Feet (measure) to it, it gives me a lot of repetiative data. When I remove tenant_name, then it shows the correct Tenant Rent (measure) and Square Feet (measure). My goal is to have re_name / unit_name / tenant_name / Tenant: Rent / Square Feet all in the same report.

 

amart_0-1671035455932.png

Below is what i'm currently getting when I attempt to add in tenant_name.

amart_2-1671035798266.png

 

So it seems like i'm missing something obvious with the relationships between the Tenants, Tenant Rent, and Unit Data Tables.

amart_1-1671035569618.png

 

Again, thank you for your help on this!

Hi , @amart 

Thanks for your quick response!

For your model relationships, show that you meet your expectations when you don't put 'Tenant Name', but you don't put it later. This is because your Tenants table is a multi-terminal table, and it will match multiple corresponding tenant names, which will automatically expand your table. First you need to determine what the logic of the Tenant Name you need to show is, because one rename corresponds to multiple unit_name and corresponds to multiple tenamt names, then placed in the visual will automatically expand.

 

For your question, you can provide more detailed test data and the data results you want in the end.

 

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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

 

Hey @v-yueyunzh-msft thanks for responding to my post. 

 

Below is a sample of the data, measures and report setup. To be clear Figure #2 from above is something I put together manually to show what I would ideally like to see from this report, Figure #1 is what I current see.

 

Unit Data

amart_0-1669903471554.png

Tenant Rent

amart_1-1669903512745.png

 

Tenants

amart_2-1669903537588.png

 

Real Estate

amart_3-1669903560996.png

 

Measures

$ / SF = [Sum of rent]/[Square Feet]

Square Feet = SUMX('Unit Data',[SF])

Tenant: Rent =SUMX('Tenant Rent',[rent])

 

Current Report Setup

amart_4-1669903718179.png

 

This is the current output i'm getting

amart_5-1669903841644.png

 

Any help much appreciated! Thank you!

Hi , @amart 

Thank you for your quick response and your detailed data.

I create the data is the same as yours. In Power BI Desktop, i make this relationship between tables:

vyueyunzhmsft_0-1669954334481.png

Then we need to create a measure like this:

$/SF = DIVIDE(SUM( 'Unit Data'[SF]), SUM('Tenant Rent'[rent]) )

Then we just need to put the field we need on the visual and we can meet your need:

vyueyunzhmsft_1-1669954362987.png

 

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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