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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
hpoyil
Frequent Visitor

"A single value column cannot be determined" error in summary table

I have a table which contain duplicated date column(table 1).

Table1
IDDatecolumn3columN
130 March 2020  
230 March 2020  
35 April 2020  
...   
...   
m1 June 2020  

 

I created Table 2 using 

 

 

Table 2 = SUMMARIZE(Table 1, Table 1[Date], "count", COUNT(Table 1[Date]))

 

 

Table2
Datecount
30 March 20202
5 April 20201
.. 
  
1 June 2020 5

So, Table 2 will have unique values for Date column. There are missing values in Date column.

 

Now, trying to create Table 3 to make the Date column continues and put the count column value will be taken from previous date for missing date.

 

 

Table3 = 
ADDCOLUMNS(
    CALENDAR(MIN(Table2[Date]), MAX(Table2[Date])),
    "count",
    LOOKUPVALUE(
        Table2[count],
        Table2[Date],
        MAXX(
            FILTER(Table2, Table2[Date] <= EARLIER([Date])),
            [Date]
        )
    )
)

 

 

But getting error: "A single value for column in table 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"

 

I assume that, this is because Table2 is a derived from Table1 where Date column contain duplicate values. 

 

Is there any way to fix this? Please let me know. Thanks in advance.

1 ACCEPTED SOLUTION
v-diye-msft
Community Support
Community Support

Hi @hpoyil 

 

The formula works fine on my side, kindly check the attachment:

09.PNG

 

The error always happens when you're trying to create a measure instead of a calculated column. you might provide the dummy pbix that we can check it further.

 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

View solution in original post

1 REPLY 1
v-diye-msft
Community Support
Community Support

Hi @hpoyil 

 

The formula works fine on my side, kindly check the attachment:

09.PNG

 

The error always happens when you're trying to create a measure instead of a calculated column. you might provide the dummy pbix that we can check it further.

 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.