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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ddalton
Resolver I
Resolver I

Change font/format in column on value change

I suspect I'm asking a little too much with this but is it possible to apply some form of conditional formatting on the values in a column of a table visual whenever the value in that column changes?

 

For example, if I have a table that is sorted by an ID column which contains non-unique values (e.g., like an order number) is it possible to write a script that interates through each row in the table visual and changes the font format (e.g., toggles bold) whenever the value changes? 

 

Does the Power BI toolkit/GUI provide a simple mechanism for this? 

 

Essentially, I'm just trying to make it easier to distinguish between different "sets" of data. 

 

As a simple example, if the sample table looks like this: 

 

Ref. DateID (Sorted)SomeValue1SomeValue2
00105/06/22AAA  
00205/06/22AAA  
00305/06/22AAA  
00406/06/22BBB  
00506/06/22BBB  
00607/06/22BBB  
00707/06/22CCC  
00808/06/22CCC  

 

After script execution, the table would now look like this (i.e., boldened font where value in ID changed from AAA to BBB, then non-bold font where value changes from BBB to CCC). 

 

Ref. DateID (Sorted)SomeValue1SomeValue2
00105/06/22AAA  
00205/06/22AAA  
00305/06/22AAA  
00406/06/22BBB  
00506/06/22BBB  
00607/06/22BBB  
00707/06/22CCC  
00808/06/22CCC  

 

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @ddalton 

 

This is not possible in Power BI currently. You may raise an idea at Ideas (powerbi.com)

 

To make it easier to distinguish, maybe you can try the matrix visual. Put all columns in Rows well to have a hierarchy. Then expand it to the lowest hierarchy to show all data. In the format pane, turn off +/- icons and Stepped layout options below Row headers. 

vjingzhang_0-1655113008225.png

 

Or like this. Put columns which need to be aggregated in Values well. Turn off Column subtotals and Row subtotals. 

vjingzhang_1-1655113574986.png

 

Ensure to put ID column on the top in Rows well, then one set of ID will be placed together. This is a workaround which is not perfect. And as a matrix is different from a table visual and it behaves differently in some ways, it may not be able to replicate all effects you have already got in a table visual. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @ddalton 

 

This is not possible in Power BI currently. You may raise an idea at Ideas (powerbi.com)

 

To make it easier to distinguish, maybe you can try the matrix visual. Put all columns in Rows well to have a hierarchy. Then expand it to the lowest hierarchy to show all data. In the format pane, turn off +/- icons and Stepped layout options below Row headers. 

vjingzhang_0-1655113008225.png

 

Or like this. Put columns which need to be aggregated in Values well. Turn off Column subtotals and Row subtotals. 

vjingzhang_1-1655113574986.png

 

Ensure to put ID column on the top in Rows well, then one set of ID will be placed together. This is a workaround which is not perfect. And as a matrix is different from a table visual and it behaves differently in some ways, it may not be able to replicate all effects you have already got in a table visual. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Thanks, @v-jingzhang

 

That works really well. As you've noted, you just have to be selective the data row order to make sure you get the preferred view. 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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