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
bdehning
Post Prodigy
Post Prodigy

Replace no value with a zero in Conditional Column

I have a Conditonal Column

 

Litigated Text

 

If Litigated equals "True" Outout  Litigated

Else 'Not LItigated"

 

If there are no rows in a given year, I want to show a zero and not a blank in a table I created.  What can I add to the conditional column?

8 REPLIES 8
bdehning
Post Prodigy
Post Prodigy

That did not work as still blanks.  I did a  -1 as a test on the measure and the other numbers reduced by 1. 

I think the issue is there are no values so + 1 with no value may still be no value.

I need to keep wokrig on this.  

Well lets try using the coalesce function instead..

Count = COALESCE(COUNT([Total Gross Incurred]),0)

That still did not work.   

bdehning
Post Prodigy
Post Prodigy

I do use a measure to count the Litigated and Not Litigated and probably where I need to introduce a 0.

 

The measure is Count = CALCULATE(COUNT([Total Gross Incurred]))

Yes! Just add a +0 on the measure

Count = CALCULATE(COUNT([Total Gross Incurred])) + 0
Syk
Super User
Super User

Which column are you trying to have the zero in? Also, can you post a screenshot of your conditional column settings?

Conditional.PNG

Table.PNG

For a given year in a table, there may not be a Litigated or Not Litigated as all may be one of the choices.  I would like to show a zero when there were none for the two choices.  

For the matrix values are you using a measure? 

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.