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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
sdavis
Frequent Visitor

Single value error when creating a measure

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
UnitKeyLocation
1001CA
1002CA
1003CA
1005CA
1007OK
1010TN

 

      Location_Table
LocationTotal Units
CA2000
OK1000
TN3000

 

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. 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@sdavis,

Please check the dax formula in the PBIX file below.

https://1drv.ms/u/s!AhsotbnGu1NokzYo2PT_Khg-2MG0

Regards,
Lydia

View solution in original post

3 REPLIES 3
danextian
Super User
Super User

Hi @sdavis,

 

Measures need to be aggregated.  It should be something like this:

 

MEASURE =
DIVIDE ( SUM ( 'Table'[Column1] ), SUM ( 'Table'[Column2] ) )

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
Anonymous
Not applicable

@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!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.