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

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

Reply
Anonymous
Not applicable

Calculate Location Quotient DAX measure

Hi Folks,

I hope someone can help me with this, I have the following table in PowerBI and i would like to calculate the location quotion for each line which would be the "%row total" /  ("column total" / "grand total")

 

Insert photos function is not working correctly to post the image

Area Sum of Non-Tech %RT Non-Tech Sum of Tech %RT TechTotalTotal %RT 
Ajax                   24,57097.38%               6602.62%25,230100.00%
Brock                     2,43599.59%                 100.41%2,445100.00%
City of Oshawa                   45,54595.90%            1,9454.10%47,490100.00%
City of Pickering                   27,19592.97%            2,0557.03%29,250100.00%
Clarington                   19,25595.75%               8554.25%20,110100.00%
Scugog                     6,29098.90%                 701.10%6,360100.00%
Total                125,29095.73%           5,5954.27%130,885100.00%

 

The final table should look like this:

 

Area Sum of Non-Tech %RT Non-TechLQ Non-Tech Sum of Tech %RT TechLQ TechTotalTotal %RT 
Ajax                     24,57097.38%1.02                  6602.62%0.6125,230100.00%
Brock                        2,43599.59%1.04                    100.41%0.102,445100.00%
City of Oshawa                     45,54595.90%1.00              1,9454.10%0.9647,490100.00%
City of Pickering                     27,19592.97%0.97              2,0557.03%1.6429,250100.00%
Clarington                     19,25595.75%1.00                  8554.25%0.9920,110100.00%
Scugog                        6,29098.90%1.03                    701.10%0.266,360100.00%
Total                   125,29095.73%               1.00              5,5954.27%      1.00130,885100.00%

 

I have filters applied to my data which means that those values will change based on the selected filters.

 

 

 

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 

I get more information from this post and make an example.

calculate.PNG

Measures are created like so:

Row Percent 1 =
DIVIDE (
    SUMX ( 'Table', 'Table'[Value1] ),
    SUMX ( 'Table', 'Table'[Value1] + 'Table'[Value2] )
)
Row Percent 2 = 
DIVIDE (
    SUMX('Table','Table'[Value2]),
    SUMX('Table','Table'[Value1]+'Table'[Value2])
)
Row Percent 1 / Grand total Percent =
DIVIDE ( [Row Percent 1], CALCULATE ( [Row Percent 1], ALL ( 'Table' ) ) )
Row Percent 2 / Grand total Percent =
DIVIDE ( [Row Percent 2], CALCULATE ( [Row Percent 2], ALL ( 'Table' ) ) )

Best Regards,

Icey

 

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
Icey
Community Support
Community Support

Hi @Anonymous ,

 

I get more information from this post and make an example.

calculate.PNG

Measures are created like so:

Row Percent 1 =
DIVIDE (
    SUMX ( 'Table', 'Table'[Value1] ),
    SUMX ( 'Table', 'Table'[Value1] + 'Table'[Value2] )
)
Row Percent 2 = 
DIVIDE (
    SUMX('Table','Table'[Value2]),
    SUMX('Table','Table'[Value1]+'Table'[Value2])
)
Row Percent 1 / Grand total Percent =
DIVIDE ( [Row Percent 1], CALCULATE ( [Row Percent 1], ALL ( 'Table' ) ) )
Row Percent 2 / Grand total Percent =
DIVIDE ( [Row Percent 2], CALCULATE ( [Row Percent 2], ALL ( 'Table' ) ) )

Best Regards,

Icey

 

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

 

Helpful resources

Announcements
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.

Top Solution Authors
Top Kudoed Authors