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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
tnarenderr
Frequent Visitor

Select max value for dynamic filter

TypeModComboValue 
TreComTre - O G12681.37 
TreComTre - R G14357.00 
TreComTre - R O11546.18 
TreComTre - O B12883.55 
TreComTre - O G14220.92 
TreTurTre - O G15558.29 
TreTurTre - O G16895.65 
TreTranTre - O G18233.02 
     
Filter on Combo    
TypeModComboValueMax Value
TreComTre - O G12681.3718233.02
TreComTre - O G14220.9218233.02
TreTurTre - O G15558.2918233.02
TreTurTre - O G16895.6518233.02
TreTranTre - O G18233.0218233.02
     
Filter on Combo and Mod    
TypeModComboValueMax Value
TreComTre - O G12681.3714220.92
TreComTre - O G14220.9214220.92
5 REPLIES 5
v-henryk-mstf
Community Support
Community Support

Hi @tnarenderr ,

 

Can you point out exactly what the problem is and give me an idea of what you have tried to do so that I can make further changes?

 

Looking forward to your reply.


Best Regards,
Henry

 

v-henryk-mstf
Community Support
Community Support

Hi @tnarenderr ,

 

Try below:

slicer1 = CROSSJOIN(row("slicer","tyep"),VALUES('Table'[Combo]))

slicer2 = CROSSJOIN(row("slicer","type"),VALUES('Table'[Mod]))

result =
CALCULATE (
    MAX ( 'Table'[Value] ),
    ALL ( 'Table'[Value] ),
    ALLSELECTED ( 'Table'[Combo], 'Table'[Mod] )
)

 

vhenrykmstf_0-1663825972796.png

vhenrykmstf_1-1663825992679.pngvhenrykmstf_2-1663826012687.png

 

 

Best Regards,
Henry


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

Hi Henry,

 

it is not giving expected results. thanks for your efforts.

 

 

tnarenderr
Frequent Visitor

Hi Henry,

 

Instead of two measures, can we have one measure only. As two measures wont help my requirment.

 

 

Regards,

Narender.

v-henryk-mstf
Community Support
Community Support

Hi @tnarenderr ,

 

Try formula like below:

M_ = 
CALCULATE (
    MAX ( 'Table'[Value] ),
    ALL ( 'Table' ),
    'Table'[Combo] = SELECTEDVALUE ( 'Table'[Combo] )
)

vhenrykmstf_0-1663812087033.png

M2 =
VAR sel_mod =
    SELECTEDVALUE ( 'Table'[Mod] )
VAR sel_combo =
    SELECTEDVALUE ( 'Table'[Combo] )
RETURN
    CALCULATE (
        MAX ( 'Table'[Value] ),
        ALL ( 'Table' ),
        'Table'[Mod] = sel_mod
            && 'Table'[Combo] = sel_combo
    )

vhenrykmstf_1-1663812378029.png

 

If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


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

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.