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
jhauw74
Helper I
Helper I

Displaying raw data using inactive relationship

Hi Experts,

 

Would like to get some help if there's a way I can use a calendar based slicers that using inactive relationships?

Here's the scenario:

jhauw74_0-1733206743543.png

Active connection is using created date  column on b2b table

Inactive connection is using closed date column on b2b table

I want to be able to  display the raw data on b2b table using the inactive connection when the slicer for status = closed:

jhauw74_1-1733207607954.png

However as the active relationship is using created date when the filter status = closed it generates incorrect row counts.

 

Is there a way to solve this issue? Thanking all in advance.



 

3 REPLIES 3
danextian
Super User
Super User

Hi @jhauw74 

 

You can invoke the inactive relationship by using CALCULATE and USERELATIONSHIP in a measure. Example.

CALCULATE ( [my total], USERELATIONSHIP ( Dates[Date], FactTable[Closed Date] ) )

Attached is a sample pbix that uses such function.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Thanks @danextian - yes I have been using that DAX function which working perfectly on measures, however when it comes to visualisation ie. using table to display raw data this is where I think that DAX function not working because the date filter need to use active relationships if that make sense.

Inactive relationships will not change the displayed rows.  You can either use a measure that uses USERELATIONSHIP as a visual filter, keep it in the visual and just make the text invisible or use another dimension table that has an active relationship to the other column.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

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.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

Top Kudoed Authors