Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
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:
Solved! Go to Solution.
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
@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
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
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 21 | |
| 20 | |
| 19 | |
| 13 |
| User | Count |
|---|---|
| 58 | |
| 52 | |
| 37 | |
| 31 | |
| 27 |