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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
PeakBizOpt
Regular Visitor

DIVIDE yields incorrect results with numerator and denomenator in separate tables

I have the below data model that utilizes the one-to-many relationship of the field 'Date" in red. I need the blue square to be the numerator and the green square to be the denominator. It's also worth noting that both fact tables have five entries for each date (one entry for each building). I'm using the following DAX: 

 

Avg Allocated Utilization % =
    DIVIDE(
        SUM('Utilization Report'[Average Person Count]),
        SUM('Capacity and Allocation'[Allocated]),
    0
    )

 

Data Model.png

Ultimately I need to show this and three other measures that are the same (different data such as capacity figures instead of allocation figures) in a clustered column chart. The chart is separated by the 'Building' field as shown below (I'm clipping off the building names at the bottom purposely.) My expectation is that this will show the entire aggregation of data, then I can use date filters such as month and/or day of the week to filter down to targeted data as needed.

 

My problem is that these values are incorrect by quite a bit. The Peaks should be showing anywhere from 50%-80% and the Averages should be 20%-40%. 

 

PeakBizOpt_1-1698089958506.png

 

The source data is clean and I've tried many different angles for the DAX with no luck. Thank you in advance for the guidance!

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Your data model is missing the building dimension.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

Your data model is missing the building dimension.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors