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