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
DigiMarketa
Frequent Visitor

Filter within table

Hi,

 

I´m wondering how to solve my problem with filtering.

 

Users will within the first step filter specific products and then filter just types without/with low stock to export it. 

 

Snímek obrazovky 2022-10-10 124328.png

Is there any possibility how to solve this within PBI?

 

Many thanks

2 ACCEPTED SOLUTIONS
JorgePinho
Solution Sage
Solution Sage

I think you can archive the desired output with 2 slicers:

 

1. A slicer for Product

2. A slicer for Stock. You can use the "Between mode" or the "Less than or equal to"

JorgePinho_0-1665400930396.png

 

View solution in original post

Anonymous
Not applicable

Hi @DigiMarketa ,

I have created a simple sample, please refer to it to see if it helps you.

Create a table includes [product] column, and without relationship between the 2 tables.

Then create a measure.

Measure =
VAR _SELECTED =
    SELECTEDVALUE ( 'FILTER'[PRODUCT] )
VAR _MINVALUE =
    MINX (
        FILTER (
            ALL ( 'Table' ),
            'Table'[PRODUCT] = SELECTEDVALUE ( 'Table'[PRODUCT] )
        ),
        'Table'[STOCK]
    )
RETURN
    IF (
        MAX ( 'Table'[STOCK] ) = _MINVALUE
            && _SELECTED = SELECTEDVALUE ( 'Table'[PRODUCT] ),
        _MINVALUE,
        BLANK ()
    )

vpollymsft_0-1665470415914.png

vpollymsft_1-1665470426332.png

 

 If I have misunderstood your meaning, please provide more details with your desired output.

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
DigiMarketa
Frequent Visitor

Hi,

 

thank you both for your solutions. Both is possible way, how to do it.

 

Regards, 

 

Marketa

 

Regards

Anonymous
Not applicable

Hi @DigiMarketa ,

I have created a simple sample, please refer to it to see if it helps you.

Create a table includes [product] column, and without relationship between the 2 tables.

Then create a measure.

Measure =
VAR _SELECTED =
    SELECTEDVALUE ( 'FILTER'[PRODUCT] )
VAR _MINVALUE =
    MINX (
        FILTER (
            ALL ( 'Table' ),
            'Table'[PRODUCT] = SELECTEDVALUE ( 'Table'[PRODUCT] )
        ),
        'Table'[STOCK]
    )
RETURN
    IF (
        MAX ( 'Table'[STOCK] ) = _MINVALUE
            && _SELECTED = SELECTEDVALUE ( 'Table'[PRODUCT] ),
        _MINVALUE,
        BLANK ()
    )

vpollymsft_0-1665470415914.png

vpollymsft_1-1665470426332.png

 

 If I have misunderstood your meaning, please provide more details with your desired output.

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

JorgePinho
Solution Sage
Solution Sage

I think you can archive the desired output with 2 slicers:

 

1. A slicer for Product

2. A slicer for Stock. You can use the "Between mode" or the "Less than or equal to"

JorgePinho_0-1665400930396.png

 

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