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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
pstaggers
Advocate II
Advocate II

Power BI/DAX error message using SUMX: A single value for column 'Column' in table 'Table'

I am attempting to use SUMX to get a correct total in my PBI visualization. This is the DAX I am trying to implement, but I get this error:

 

Test Time Total =
SUMX(VALUES('Table1'[Unique ID]),'Table2'[Test Time])


A single value for column 'Test Time' in table 'Table2' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.

 

The two tables are tied with a one-to-many relationship with the cross filter set to both directions.

 

Is there a good way to troubleshoot this error?

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@pstaggers , As you have use values you need give a measure

 

SUMX(VALUES('Table1'[Unique ID]),calculate(Sum('Table2'[Test Time])))

 

or

SUMX(VALUES('Table1'[Unique ID]),calculate(Max('Table2'[Test Time])))

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

Thank you @amitchandak .  That did the trick!  Both worked since it is only evalutating a single value (SUM and MAX yield same result, MIN works too)

 

Curious, but is VALUES really needed?  Maybe a simpler solution without?

View solution in original post

4 REPLIES 4
Pragati11
Super User
Super User

HI @pstaggers ,

 

For which column are you trying to SUM the values? 'Table1'[Unique ID] or 'Table2'[Test Time] ??

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Hi Pragat,

 

I am trying to SUM the Test Time.  The Unique ID is a unique identifier for a single test that takes a set amount of time.  If I had 3 Unique IDs with 8 hours, 12 hours, and 16 hours, respectively, I would want to sum up to 36 hours of test time.

 

Thanks

amitchandak
Super User
Super User

@pstaggers , As you have use values you need give a measure

 

SUMX(VALUES('Table1'[Unique ID]),calculate(Sum('Table2'[Test Time])))

 

or

SUMX(VALUES('Table1'[Unique ID]),calculate(Max('Table2'[Test Time])))

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Thank you @amitchandak .  That did the trick!  Both worked since it is only evalutating a single value (SUM and MAX yield same result, MIN works too)

 

Curious, but is VALUES really needed?  Maybe a simpler solution without?

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.