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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Relational problem with calendar in datamodel

Hi PBI'ers,

 

I have created this datamodel:

LedenontwikkelingKoppelingProbleem.PNG

 

Jaar = year

Datum = date

 

I want to be able to filter my contact measures on the same jaar filter as the other entities of the datamodel.

Also I need to use the calendar to measure my KPI with the Previousyear formula. 

But everything errors with the jaar entity, this is the error:

"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."

 

Does anyone have a clue on how to fix this?

 

Thanks a lot already!

MrNelsch

 

2 REPLIES 2
Anonymous
Not applicable

HI @Anonymous,

 

Maybe you can try to manually create a calculated table based on these tables and use it as bridge to link them.

Bridge =
DISTINCT (
    UNION (
        VALUES ( Table1[Year] ),
        VALUES ( Table2[Year] ),
        VALUES ( Table3[Year] )
    )
)

 

Regards,

Xiaoxin Sheng

Stachu
Community Champion
Community Champion

looking at teh message you have blanks in the Jaar table

you can filter them out in the query editor, or if the table is calculated in DAX you can add FILTER statement there that excludes blanks



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors