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
StuartSmith
Power Participant
Power Participant

By adding +0 to a measure, it increased the number of rows.

I have the below measure as a table column (Whole Numer) and its currently displaying some empty rows where there are no public holidays.  I tried adding +0 to the end of the measure, but when I do this, it increases the number of rows of the table visual to a very large amount.  

 

How can I get "0" into the empty rows.

 

Measure: 

(4) PublicHolidays = COUNTROWS(FILTER(('Table: Public Holidays'), 'Table: Public Holidays'[Date +1] >= 'KPI Measures: Time to Fill'[(1) PositionEndDate] && 'Table: Public Holidays'[Date +1]<='KPI Measures: Time to Fill'[(2) PositionFilledDate] ))
 
2023-04-24_15-49-38.png
 
Thanks in advance.
2 REPLIES 2
StuartSmith
Power Participant
Power Participant

Thanks for taking the time to try and solve my issue.  Unfortunately, both measurse still increase my row count from 103 to 721.  I may just have to have the cells empty.

DOLEARY85
Super User
Super User

Hi,

 

you could try:

 

Measure: (4) PublicHolidays = COALESCE(COUNTROWS(FILTER(('Table: Public Holidays'), 'Table: Public Holidays'[Date +1] >= 'KPI Measures: Time to Fill'[(1) PositionEndDate] && 'Table: Public Holidays'[Date +1]<='KPI Measures: Time to Fill'[(2) PositionFilledDate] )),0)
 
or
 
Measure: (4) PublicHolidays = if(ISBLANK(COUNTROWS(FILTER(('Table: Public Holidays'), 'Table: Public Holidays'[Date +1] >= 'KPI Measures: Time to Fill'[(1) PositionEndDate] && 'Table: Public Holidays'[Date +1]<='KPI Measures: Time to Fill'[(2) PositionFilledDate] ))),0,COALESCE(COUNTROWS(FILTER(('Table: Public Holidays'), 'Table: Public Holidays'[Date +1] >= 'KPI Measures: Time to Fill'[(1) PositionEndDate] && 'Table: Public Holidays'[Date +1]<='KPI Measures: Time to Fill'[(2) PositionFilledDate] )),0))
 
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

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.