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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
maurcoll
Helper II
Helper II

Using inactive relationships

Good Morning
i have two tables an open table and a closed table for individual orders. Each table has the same ID column for the order number and a month year column and the product type and a total.

I have a date table also.

I have joined the two tables on the ID field. I have joined to the date table using month year with one as an active and one as an inactive relationship.

The issue i am having is that i can not filter using slicers on both the month year and product type in the visuals. Is there a way of doing this. 

For example i want to know in May 22 how many orders for Product A were opened and how many were closed.

1 ACCEPTED SOLUTION

Hi @maurcoll 

Based to the provided data, there's no necessity to usean inactive relationship unless there are multiple relationships between the same tables (eg closed and opened dates are in the same row but different columns in the same table). In your scenario, the tables are distinct from each other.  I would use the data model below:

danextian_0-1701085578938.png

This should allow you to includ the three dimensions in one table with data for opened and closed orders:

danextian_1-1701085685965.png

Please also see attached pbix for your reference.










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


Proud to be a Super User!









"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.

View solution in original post

3 REPLIES 3
danextian
Super User
Super User

Hi @maurcoll 

 

As always, please provide a usable sample data (not an image) that complete covers your use case and your expected result using that sample data rather than make anyone who'd want to help imagine how your data looks.










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


Proud to be a Super User!









"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.

Orders Opened   
IDMonth YearProductTotal
1 -AJan-22A12
2-AJan-22A10
3-BFeb-22B5
4-AFeb-22A4
5-BJan-22B3
6-CJan-22C15
    
    
Orders Closed   
IDMonth YearProductTotal
1-AJan-22A12
3-BFeb-22B5
4-AMar-22A4
5-BFeb-22B3

What i want to  be able to do is see how many orders were opened in Jan and how many closed in jan and what the percentage is. I want to be able to filter on product and Date. Orders may not be closed in the month they were opened.
The tables are joined on ID and to a date table using Month Year with open as an active relationship and closed as an inactive relationship.

Hi @maurcoll 

Based to the provided data, there's no necessity to usean inactive relationship unless there are multiple relationships between the same tables (eg closed and opened dates are in the same row but different columns in the same table). In your scenario, the tables are distinct from each other.  I would use the data model below:

danextian_0-1701085578938.png

This should allow you to includ the three dimensions in one table with data for opened and closed orders:

danextian_1-1701085685965.png

Please also see attached pbix for your reference.










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


Proud to be a Super User!









"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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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