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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
oakfootballclub
Helper IV
Helper IV

how to add condition format to different values when added column in matrix

Hi experts, I created a dimension table as column name of matrix, and created switch true measure as value, but I need to add icons only to % values, when I added the icon, all columns shows, how to set in order to only the % columns has the arrow icons?

dimension table as column header

oakfootballclub_0-1718359615775.png

 

measure I created:

value=

SWITCH(SELECTEDVALUE(dim_2Y[num]),
1,IF(ISBLANK([cal_amount_FYTD_PreviousM_FY-1]),"-",[cal_amount_FYTD_PreviousM_FY-1]),
2,[cal_amount_FYTD_PreviousM_Increase%_Y-1],
3,[cal_amount_FYTD_PreviousM],
4,FORMAT([cal_amount_FYTD_PreviousM_Increase%_Y], "Percent")
)
 

all columns show the arrow icons

oakfootballclub_1-1718359615946.png

here is the matrix I created:

oakfootballclub_0-1718359765457.png

 

 

expected result: only the percent value column has the arrow condition formatting

oakfootballclub_2-1718359663659.png

 

 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @oakfootballclub 

You cannot format these columns separately because there is only one "Measure" to base the styling on.

Therefore, either you also need to add the arrows with DAX, or give up on the whole dynamic measure thing and do it the simple way with 2 measures.

Ritaf1983_0-1718439896454.png

The pbix with the example is attached

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

1 REPLY 1
Ritaf1983
Super User
Super User

Hi @oakfootballclub 

You cannot format these columns separately because there is only one "Measure" to base the styling on.

Therefore, either you also need to add the arrows with DAX, or give up on the whole dynamic measure thing and do it the simple way with 2 measures.

Ritaf1983_0-1718439896454.png

The pbix with the example is attached

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.