Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi,
I am new to PowerBI and am creating a measure for calculating uptime %. I tried to create the measure, but got an error because one column wasn't aggregated. The error stated, "A single value for column Total Units in table Location_Table cannot be determined."
How can I calculate the uptime % for every Location? Location is the unique column in the Location_Table. Here's the tables:
| Fault_Table | |
| UnitKey | Location |
| 1001 | CA |
| 1002 | CA |
| 1003 | CA |
| 1005 | CA |
| 1007 | OK |
| 1010 | TN |
| Location_Table | |
| Location | Total Units |
| CA | 2000 |
| OK | 1000 |
| TN | 3000 |
For Faulted Units, I am counting the keys: COUNT(Fault_Table[UnitKey]).
Here's the formulas:
Working Units = Total Units – Faulted Units
Uptime % = Working Units/Total Units
Please let me know if I can provide more information.
Solved! Go to Solution.
@sdavis,
Please check the dax formula in the PBIX file below.
https://1drv.ms/u/s!AhsotbnGu1NokzYo2PT_Khg-2MG0
Regards,
Lydia
Hi @sdavis,
Measures need to be aggregated. It should be something like this:
MEASURE = DIVIDE ( SUM ( 'Table'[Column1] ), SUM ( 'Table'[Column2] ) )
@sdavis,
Please check the dax formula in the PBIX file below.
https://1drv.ms/u/s!AhsotbnGu1NokzYo2PT_Khg-2MG0
Regards,
Lydia
Thank you, that worked!
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 52 | |
| 45 | |
| 16 | |
| 16 |
| User | Count |
|---|---|
| 107 | |
| 105 | |
| 40 | |
| 33 | |
| 25 |