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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Helper IV
Helper IV

DAX error : A single value for column 'Date' in table 'Date' cannot be determined.

I am new to DAX and trying learn it. So I am essentially looking for an explanation as to what is causing the error.


Following formula works fine




AverageX = Averagex(
                   ,Fact_Hours[SUM Hours]




However, if I remove the VALUES function, I end up with an error I mentioned in the title of this question




AverageX = Averagex(
                   ,Fact_Hours[SUM Hours]




Date column in Date table has unique values already. Why is VALUES function needed? 

Also, for second argument to AVERAGEX, Measure works. But if I try to put a column that is already a part of model, it would not. Why would that be?

Super User
Super User

Hi @tvaishnav 

Iteration functions requires a table as first argument. VALUES is a function that creats a table contains the unique values in a column. You cannot refer the column directly. 
Iteration functions creat a filter context over the tablw under iteration. Only the columns that belongs to this table can be refrenced directly. Columns from related tables in the "one" side of the relationship can be referenced using RELATED function. The "many" side related table can be referenced using RELATEDTABLE functions which bring a set of rows from the "many" side table which are realted to the current row on the iteration. In this case an aggregation must be provided in order to evaluate any column from this related table. 
on the other hand CALCULATE function can be used to perform context transition in irder to evaluate columns from rekated tables. In this case aggregation shall be provided. Remember that any refrenced measure is automatically wrapped with CALCULATE. 
please let if you still have any doubts 

Super User
Super User

@tvaishnav Because you have an errant paren ). The second formula should be:

AverageX = Averagex(
                   ,Fact_Hours[SUM Hours]

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors