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
JMST
Frequent Visitor

Error with DATEDIF

Hi guys!

 

I'm building the following measure:

Last30Days =
IF(
DATEDIFF('Product Properties' [Last inventory date], 'Product Properties'[Report Date],DAY) <=31,
TRUE(),
FALSE()
)

And I obtain the following error: It is impossible to determine a unique value for the "Last inventory date" column in the "Product Properties" table. 

 

Could someone help me with this error?

 

Thanks!

1 REPLY 1
vk_pbi
Resolver II
Resolver II

The reason is that, the last inventory date may have repeated values.. I think you can wrap it with MAX to handle this

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.