Sign-up now and get instant access
Leave a comment
Beginner to advanced classes taught by Microsoft MVPs and Authors.
In-depth boot camps take you from a novice to mastery in less than a week.
Season Learning Pass
Get access to our very best training offerings for successful up-skilling.
Customized training to master new skills and grow your business.
Quick references for when you need a little guidance.
Summaries developed in conjunction with our Learn with the Nerds sessions.
Digital goodies - code samples, student files, and other must have files.
Stay up-to-date on all things Power BI, Power Apps, Microsoft 365 and Azure.
Earn money by driving sales through the Pragmatic Works' Training Affiliate Program.
It's time to address your client's training needs.
Learn how to get into IT with free training and mentorship.
Discover the faces behind our success: Meet our dedicated team
How can we help? Connect with Our Team Today!
Find all the information you’re looking for. We’re happy to help.
In the Power BI Desktop, you are allowed only 1 active relationship between tables in your data model. Many times this is all that is needed. There are, however, scenarios where this becomes a huge reporting issue. For example, what if you have a table of sales where one column contains the date a sale occurs and another column that records the date the money from the sale is collected. Well, depending upon which relationship is active with your Date table in your model the sum of your sales will either be based on the sale date or the money collected date. If you need to see both values though this is where you need to make a separate measure using the function USERELATIONSHIP paired with the function CALCULATE. The USERELATIONSHIP function will allow you to access inactive relationships in your data model.
Another scenario, where I have seen this be an issue, is when users need to see their sales based on the city where the sale occurred compared to the city where the sales are being shipped. Here again, we run into an issue of only being able to have one active relationship from our sales table to our Geography table. If you have ever run into an issue like this check out this video explaining how to make inactive relationships and leverage the USERELATIONSHIP DAX function.
If you enjoy this video or any of my other videos and are interested in formal training on Power BI, Power Apps, Azure, or other Microsoft products you can use my code "Matt20" to get 20% off at check out when purchasing our On-Demand Learning classes from https://pragmaticworks.com/pricing/
ABOUT THE AUTHOR
Matt Peterson is a Trainer for Pragmatic Works specializing in the Power Platform. He graduated from the University of North Florida in 2006 and comes with 15 years of teaching experience in high school algebra. Matt earned the accomplishment in 2013 of being named the Florida Gifted Teacher of The Year. His primary focus is helping our customers learn the ins and outs of Power Apps and Power BI.
Join other Azure, Power Platform and SQL Server pros by subscribing to our blog.