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
mrbajana
Helper III
Helper III

Create Formatting Conditional every Group

I have a matrix like the attached image, it is possible to create a conditional format of icons or a formula with DAX that tells me if the value is greater or less for each of the groups that I have in the matrix. I want the icon to tell me if it is higher or lower according to the group

 

2021-06-15_11h18_20.png

 

1 ACCEPTED SOLUTION

Hi @mrbajana ,

 

Try the following formula:

 

Measure = 
var _Max = 
   MAXX(
       ALLSELECTED('Table'[Teatro]),
       CALCULATE( SUM('Table'[ADM]) )
    )
return 
    IF(
        SUM('Table'[ADM]) = _Max, 
        "ColoredArrowUp",	
        "ColoredArrowDown"
    )

image.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

4 REPLIES 4
v-kkf-msft
Community Support
Community Support

Hi @mrbajana ,

 

Try the following formula:

 

Measure = 
var _Max = 
    MAXX(
        ALLEXCEPT( 'Table', 'Table'[Grupo] ),
        CALCULATE( SUM('Table'[ADM]) )
    )
return 
    IF(
        SUM('Table'[ADM]) = _Max, 
        "ColoredArrowUp",	
        "ColoredArrowDown"
    )

 

Then set icons based on Measure:

image.png

image.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

Thanks for your answer, I apply your formula, I dont find where to send my pbix file so  I send you the pictures of my file , sure where I see I only get the red arrows,  it must be some little trick that is missing  because of the model.

 

2021-06-19_08h50_26.png2021-06-19_08h50_58.png2021-06-19_08h51_54.png

Hi @mrbajana ,

 

Try the following formula:

 

Measure = 
var _Max = 
   MAXX(
       ALLSELECTED('Table'[Teatro]),
       CALCULATE( SUM('Table'[ADM]) )
    )
return 
    IF(
        SUM('Table'[ADM]) = _Max, 
        "ColoredArrowUp",	
        "ColoredArrowDown"
    )

image.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

Thank you so much It Works.

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.