Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
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
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
| User | Count |
|---|---|
| 50 | |
| 42 | |
| 36 | |
| 31 | |
| 29 |
| User | Count |
|---|---|
| 129 | |
| 129 | |
| 59 | |
| 48 | |
| 47 |