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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Windynite
Frequent Visitor

Relationship Functions

Hello,

 

I am learning about relationship functions including CROSSFILTER, RELATED, RELATEDTABLE, USERELATIONSHIP and I would like to learn more about them. As I know, an optimal data model can be useful and good performance for Power BI dashboards and reports. It means that relationships amongs tables need to be set up appropriately. Creating measures and calculated columns also contribute for an optimal model. There are some data model samples including inactive and active relationships. I would like to know why we have to use these relationship types, and why we need to use those relationship functions. 

 

Thank you,

WindyNite

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Your data model has to follow the business problem.  That sometimes means you need to adjust your data model.  For example you may have a fact table with ticket information including Opened Date and Closed Date.  Now you want to know for each month how many tickets were opened in that month and how many were closed.  You can't answer that with a regular data model, you need to employ USERELATIONSHIP to temporarily modify the link between the calendar table and the fact table.

 

Kudos for trying to learn about these, but true learning comes from needing to apply these functions in your business scenario.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

Your data model has to follow the business problem.  That sometimes means you need to adjust your data model.  For example you may have a fact table with ticket information including Opened Date and Closed Date.  Now you want to know for each month how many tickets were opened in that month and how many were closed.  You can't answer that with a regular data model, you need to employ USERELATIONSHIP to temporarily modify the link between the calendar table and the fact table.

 

Kudos for trying to learn about these, but true learning comes from needing to apply these functions in your business scenario.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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