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
BFantastic
New Member

Conditional Formatting on Items with no Data

I'm currently trying to insert icons into a table visual based on a specific status fields (Green, Yellow, Red). The underlying data is setup such that there's a parent table, a relationship table and a child table. The status is in the parent table and I'm using a SWITCH column to assign icons accordingly. Within the table visual, I am using conditional formatting and using that field to show the icons. This works out fine for parents with children. 

 

The issue I'm having is not all parents have children, but I would like to display them all anyway. I'm using the "Show items with no data" option, which is working, but the conditional formatting doesn't seem to be applying itself to these records.

 

Am I setting this up wrong, is there a better way to accomplish this?

5 REPLIES 5
hjross
New Member

I have this problem, with what I believe to be a valid use case.

 

To generalize, say I have items in a store, and I want a table that lists the name of the item, and, say, the number of orders. I conditionally format the name of the item to link to its page.

 

The link is not clickable if there are no orders for that item yet, even if that URL is valid an in the same table as the name of the item. The orders are stored in another table (as they should be). 

V-lianl-msft
Community Support
Community Support

Hi @BFantastic ,

 

Do you mean items with no data in the matrix?

We are doing conditional formatting for Value,there may be blank rows in the matrix but the value is not blank.

This may make us think that the conditional formatting is invalid.

 

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

edhans
Super User
Super User

I'd have to see more of what you are referering to via an image to more fully understand, but on the face of it, if there is no data, there is nothing to conditionally format, right? Maybe you should replace blanks with a space or zero, then apply conditional formats accordingly?

=COALESCE(ISBLANK([MyField]), " ")

That will return a space where there are blanks. 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Thanks for the quick replay, in trying to mock up a sample for you, I've come to realize I think my entire understanding of Show Items with no Data is flawed. I'll need to redo this report, as I was trying avoid flattening the data too much with Merge operations, but I think since I want this Outer join I'll have to do it that way.

There are valid uses for "show items with no data" but it can be over used. Nothing is a substitute for a well thought out model through some good transformations. I've tried to take shortcuts too many times myself.

 

I'd say I spend 60-85% of my time in Power Query getting a good model ready. 

 

Then I spend the other 80% of my time in DAX. 😁



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

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.