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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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

 

 

 

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
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! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

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

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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