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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
abhilash_sa
Regular Visitor

List by Open Status

Hi,

 

I need help with deriving a table of open status list of products. I have 2 tables - a master with product names and another with open/closed reorder status.

Table 1

Product
A1
A2
A3
A4

 

Table 2

ProductTypeStatus
A1T1Open
A1T1Closed
A1T2Open
A1T2Closed
A1T3Open
A2T4Open
A2T5Open
A2T5Closed
A2T6Open
A2T7Open
A3T8Open
A3T9Open
A3T9Closed
A4Z1Open
A4Z2Open

 

I want to be able to show only those product/type combinations with an open status, but no closed status, like below:

 

ProductTypeStatus
A1T3Open
A2T4Open
A2T6Open
A2T7Open
A3T8Open
A4Z1Open
A4Z2Open

 

Filtering on Table 2 for "Open" will not work, because for the combination of A1,T1, while there is "Open", there is also a "Closed" status.

 

Thank you very much!

2 ACCEPTED SOLUTIONS

@abhilash_sa , 
Got it, try below DAX. 

manikumar34_0-1742272393654.png

I have created a measure to filter the values. If you want to create a calcualted table then use the belwo DAX. 

Table 3 =
VAR ClosedTypes =
    SUMMARIZE(
        FILTER(
            'Table (2)',
            'Table (2)'[Status] = "Closed"
        ),
        'Table (2)'[Product], 'Table (2)'[Type]
    )

RETURN
    FILTER(
        'Table (2)',
        NOT (
            'Table (2)'[Product] & 'Table (2)'[Type]
            IN SELECTCOLUMNS(ClosedTypes, "Key", [Product] & [Type])
        )
    )




If this helps, Appreciate your KUDOS!
Did I answer your question? Mark my post as a solution!


Proud to be a Super User!




View solution in original post

Khushidesai0109
Skilled Sharer
Skilled Sharer

Hii @abhilash_sa 

This Might help you
Show_Open_Only =
VAR ClosedTypes =
CALCULATETABLE (
VALUES ( Table2[Type] ),
Table2[Status] = "Closed",
ALLEXCEPT ( Table2, Table2[Product] )
)
RETURN
IF (
Table2[Status] = "Open" &&
NOT Table2[Type] IN ClosedTypes,
"Show",
BLANK()
)

If this helps, I would appreciate your KUDOS!
Did I answer your question? Mark my post as a solution!

Proud to be a Super User!!

View solution in original post

7 REPLIES 7
Khushidesai0109
Skilled Sharer
Skilled Sharer

Hii @abhilash_sa 

This Might help you
Show_Open_Only =
VAR ClosedTypes =
CALCULATETABLE (
VALUES ( Table2[Type] ),
Table2[Status] = "Closed",
ALLEXCEPT ( Table2, Table2[Product] )
)
RETURN
IF (
Table2[Status] = "Open" &&
NOT Table2[Type] IN ClosedTypes,
"Show",
BLANK()
)

If this helps, I would appreciate your KUDOS!
Did I answer your question? Mark my post as a solution!

Proud to be a Super User!!

Exactly what I needed! Thank you very much!

manikumar34
Solution Sage
Solution Sage

@abhilash_sa , 
You can filter Status to Open on visual level filter. 





If this helps, Appreciate your KUDOS!
Did I answer your question? Mark my post as a solution!


Proud to be a Super User!




Thank you for responding. unfortunately that will not work, because then this record will filter through:

A2T5Open

but, it has a "Closed" record in Table 2. I want only those products that do not have a "Closed" status.

@abhilash_sa , 
Got it, try below DAX. 

manikumar34_0-1742272393654.png

I have created a measure to filter the values. If you want to create a calcualted table then use the belwo DAX. 

Table 3 =
VAR ClosedTypes =
    SUMMARIZE(
        FILTER(
            'Table (2)',
            'Table (2)'[Status] = "Closed"
        ),
        'Table (2)'[Product], 'Table (2)'[Type]
    )

RETURN
    FILTER(
        'Table (2)',
        NOT (
            'Table (2)'[Product] & 'Table (2)'[Type]
            IN SELECTCOLUMNS(ClosedTypes, "Key", [Product] & [Type])
        )
    )




If this helps, Appreciate your KUDOS!
Did I answer your question? Mark my post as a solution!


Proud to be a Super User!




Thank you very much. Exactly the solution I needed.

Deku
Super User
Super User

Add this to the filter pane of the table visual and filter to equals 0

 

HasClosed =
CALCULATE( 
   COUNTROWS( 'Table 2' )
   ,'Table 2'[Status] = "Closed"
)

 

 


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors