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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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 Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.