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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.