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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Anonymous
Not applicable

Column '' in Table '' contains blank values and this is not allowed for columns on the one side of a

Error I get: "Column '' in Table '' contains blank values and this is not allowed for columns on the one side of a many-to-one relationship or for columns that are used as the primary key of a table."

 

The formula is:

DateFormatted = if( [DATE] = today(),blank(),[Date])
 
It worked before. What is wrong?
1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @Anonymous 
The problem is here :
DateFormatted = if[DATE] = today(),blank(),[Date])
blanks could not be used as a primary key.
You can have the wanted column but not to use it for creating relationship

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

2 REPLIES 2
Kedar_Pande
Super User
Super User

@Anonymous 

DateFormatted = 
IF(
[DATE] = TODAY(),
BLANK(),
IF(
NOT(ISBLANK([DATE])),
[DATE],
DATE(9999, 12, 31) // Or any placeholder date that suits your model
)
)

By using this adjusted formula, you can maintain the integrity of your model without generating blank values where they're not allowed.

 

💌 If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn

Ritaf1983
Super User
Super User

Hi @Anonymous 
The problem is here :
DateFormatted = if[DATE] = today(),blank(),[Date])
blanks could not be used as a primary key.
You can have the wanted column but not to use it for creating relationship

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.