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
wjadevries
New Member

Custom sql date table unknown dates

I have a question I can't find anywhere.
Some records do not have a shipping date yet (still unknown), so I need an unknown date (in the future, but also in the past for a validfrom).
How do I do that?
In sql, I set an unknown future date to 9999-12-31 and an unknown past date to 0000-01-01, but PowerBI requires as sql date dimension to have a continuous date range.
This would mean I have to fill the date dimension completely from 0000 til 9999, which is stupid.
Does anyone have a suggestion/solution?

1 REPLY 1
amitchandak
Super User
Super User

@wjadevries , better to leave them blank/null

 

you can have measure to check blank dates

 

countrows(filter(Table, isblank(Table[validfrom]) ) )

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.