This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreGet Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.
Hi, I am calculating a cost per unit, which was easily done using a basic measure. However, I've been requested to add a drill down to the Cost Per Unit at the account level, and instead of displaying properly, the drill down seems to show all data, and not on a per unit basis.
Here is the data:
| CompanyName | AcctDescr | Category | Value |
| A | Paint | Maint | 45396 |
| A | Floors | Maint | 4000 |
| A | Carpet | Maint | 6000 |
| A | Unit Count | Units | 200 |
| B | Paint | Maint | 54880 |
| B | Floors | Maint | 4000 |
| B | Carpet | Maint | 1000 |
| B | Unit Count | Units | 400 |
| C | Paint | Maint | 67996 |
| C | Floors | Maint | 4000 |
| C | Carpet | Maint | 700 |
| C | Unit Count | Units | 500 |
Here is what I'm hoping to show in a PBI table or matrix: a total and a drill down to the cost account level.
Thanks!
Solved! Go to Solution.
The problem is that you have two different things in your data: costs and units. You need to split them into separate tables to get this to work correctly.
The attached Excel file has your solution. The DAX for cost/unit is simply
Cost / Unit:=
DIVIDE(
SUM(RawData[Value]),
SUM(Companies[Units]),
BLANK()
)
Here's the results
Hope this helps!
The problem is that you have two different things in your data: costs and units. You need to split them into separate tables to get this to work correctly.
The attached Excel file has your solution. The DAX for cost/unit is simply
Cost / Unit:=
DIVIDE(
SUM(RawData[Value]),
SUM(Companies[Units]),
BLANK()
)
Here's the results
Hope this helps!
It works. Thank you so much.
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 |
|---|---|
| 22 | |
| 21 | |
| 21 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 55 | |
| 55 | |
| 48 | |
| 26 | |
| 24 |