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
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
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
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
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.