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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.