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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
juliano_nunes
Regular Visitor

Conditional formatting based on custom column value

I've created a custom column with 0 or 1 (true or false) values based on a condition (if a date column is null then this custom column receives 0, else it receives 1).

 

I want to display an icon on this custom column based on these 0 or 1 values, however I could only make it based on summarization.

 

What am I missing?

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @juliano_nunes ,

If you want to retain the custom column and apply icons on it, you can create a measure and apply this measure on the custom column:

Measure = IF( SELECTEDVALUE('Table'[date]) = BLANK(),0,1)

icon1.png

Or you can apply icons on the measure itself directly:

icon2.png

Attached a sample file in the below, hopes to help you.

 

Best Regards,
Yingjie Li

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

3 REPLIES 3
v-yingjl
Community Support
Community Support

Hi @juliano_nunes ,

If you want to retain the custom column and apply icons on it, you can create a measure and apply this measure on the custom column:

Measure = IF( SELECTEDVALUE('Table'[date]) = BLANK(),0,1)

icon1.png

Or you can apply icons on the measure itself directly:

icon2.png

Attached a sample file in the below, hopes to help you.

 

Best Regards,
Yingjie Li

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

amitchandak
Super User
Super User

@juliano_nunes , Try to display data at the row level. if you do not have and unique ID column then you can add an index column and use it in visual, In that case, summarized value will same as like value

https://stackoverflow.com/questions/45715963/creating-an-index-column-for-power-bi

 

https://exceleratorbi.com.au/conditional-formatting-using-icons-in-power-bi/

I have a text column with GUID values (unique), however when I do the steps to add the conditional formatting, I get this:

 

juliano_nunes_0-1603724757790.png


How can I confirm which column is the index without having to create another one?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.