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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Yrstruly1
Helper I
Helper I

A Single Value For Column Cannot Be Determined

Un trying to use this measure and im getting the above error.

Column = IF('Table'[Delivery Date]<='Table'[Requested Delivery Date],"Yes","No")

 

I also tried Column = (Dates2[Date1] - Dates2[Date2])*1 And Days Between = DATESBETWEEN( 'Table'[Dates], 'Table'[Start Date], 'Table[End Date] ), that says cannot find column.

 

U also cant use Sum with dates.

Seconf dax is 

1 ACCEPTED SOLUTION

Hi @Yrstruly1 ,

 

Column 2 = DATEDIFF(deliveries[promise_date],deliveries[delivered_date],DAY)

 

1.jpg

 


Regards,

Harsh Nathani


Appreciate with a Kudos!! (Click the Thumbs Up Button)

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

View solution in original post

12 REPLIES 12
Yrstruly1
Helper I
Helper I

Column 2 = DATEDIFF('Table'[Delivery Date],'Table'[Requested Delivery Date],DAY)

 

Im getting error "Invalid token

@Yrstruly1 , This you can create as a column not meaure

Column = IF('Table'[Delivery Date]<='Table'[Requested Delivery Date],"Yes","No")

 

measure can be

 

measure = sumx('Table, IF('Table'[Delivery Date]<='Table'[Requested Delivery Date],1,0))

measure = IF(min('Table'[Delivery Date])<=max(('Table'[Requested Delivery Date]),"Yes","No"), here row context is very important

 

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Its not working. Would you be so kind and test it your side pls?

 

https://drive.google.com/file/d/1tSpCtPPLyYef7jJFJZI_0fK9HuubMcqR/view?usp=drivesdk

HI @Yrstruly1 ,

 

 

Column = IF(deliveries[delivered_date] <= deliveries[promise_date],"Yes","No")

 

1.jpg

 

 


Regards,

Harsh Nathani


Appreciate with a Kudos!! (Click the Thumbs Up Button)

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

Hi @Yrstruly1 ,

 

 

Column 2 = IF( DATEDIFF(deliveries[promise_date],deliveries[delivered_date],DAY) <=0 , "Yes", "No")

 

1.jpg

 

 

https://dax.guide/datediff/

 

 

Regards,

Harsh Nathani


Appreciate with a Kudos!! (Click the Thumbs Up Button)

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

 

This is suppose to count the days, not give a yes or no.

Rolling Days 30 = Calculate([total sales] ,Datesbetweendates(dates[date])

maxx(dates[date]), - 30

Maxx(dates[date])))

 

Im getting errors for this code, pls assist?

Hi @Yrstruly1 ,

 

Please raise this as a separate topic .

 

Too many questions on one post.

 

Regrads,

HN

Hi @Yrstruly1 ,

 

Column 2 = DATEDIFF(deliveries[promise_date],deliveries[delivered_date],DAY)

 

1.jpg

 


Regards,

Harsh Nathani


Appreciate with a Kudos!! (Click the Thumbs Up Button)

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

@amitchandak @harshnathani 

I meant 

Column 2 = DATEDIFF('Table'[Delivery Date],'Table'[Requested Delivery Date],DAY)

 

How would you format this?

Did you use my data to create that, what was the issue?

 

How would i format this with the data i provided?

 

Column 2 = DATEDIFF('Table'[Delivery Date],'Table'[Requested Delivery Date],DAY)

Column 2 = DATEDIFF('Table'[Delivery Date],'Table'[Requested Delivery Date],DAY)

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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