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

Check if Month has any entries.

I have a table with "Name" and "Start Date".  Not all months have people starting and I need to have a way to check if a month has zero people starting.  Is there a way to do this in a measure, such as if a month has people starting, then 1 and if no one starting 0

 

Once I can identify months without entries, I (hopefully) can integrate this into a working measure I already have.

 

Hope that makes sence.

 
1 ACCEPTED SOLUTION
johnt75
Super User
Super User

IF( ISEMPTY('HR Data'), Var1, Var2 )

View solution in original post

2 REPLIES 2
johnt75
Super User
Super User

IF( ISEMPTY('HR Data'), Var1, Var2 )
StuartSmith
Power Participant
Power Participant

or is it possible to have something like...

 

IF(CountRows('HR Data' = 0, Var1, Var2), but for some reason the HR Data = 0 has a Red line under it.  Whats the correct syntax

 

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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