This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hello,
I am trying to create a table in which I want to include the rent, the square feet and calculate the Rent/square foot. In the subtotal I get wrong number because the default action in Power BI table is to sum the values in Rent/Square column. In my case I want to divide the total of rent by the total of square foot and not to sum the Rent Square feet comumn. Can you please support with this?
Please see an example below.
Many thanks,
Marios
Solved! Go to Solution.
Hi
I guess you computed your Rent/Square Feet as a calculated column using the DAX language.
Because this is a ratio, you'd better use a measure rather than a calculated column. See more explanation here: https://exceleratorbi.com.au/calculated-columns-vs-measures-dax/
Ralph Kimball summarizes this concept with this sentence : "You should always to the ratios of the sum rather than the sum of the ratios"
So, in your example, go to 'Modelling' Tab, create the following measure:
Rent/Squarefeet = Divide ( Sum(YourTable[Rent]) , Sum(YourTable[Square Feet]) , 0)
And use this brand new measure in the "values" of your tables & matrix.
Hi
I guess you computed your Rent/Square Feet as a calculated column using the DAX language.
Because this is a ratio, you'd better use a measure rather than a calculated column. See more explanation here: https://exceleratorbi.com.au/calculated-columns-vs-measures-dax/
Ralph Kimball summarizes this concept with this sentence : "You should always to the ratios of the sum rather than the sum of the ratios"
So, in your example, go to 'Modelling' Tab, create the following measure:
Rent/Squarefeet = Divide ( Sum(YourTable[Rent]) , Sum(YourTable[Square Feet]) , 0)
And use this brand new measure in the "values" of your tables & matrix.
Many thanks Excelside, this looks to work fine.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 29 | |
| 28 | |
| 25 | |
| 20 | |
| 14 |
| User | Count |
|---|---|
| 53 | |
| 47 | |
| 29 | |
| 20 | |
| 19 |