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
Anonymous
Not applicable

Find no of Zeros in rows with respect to another column(For example emp. code)

Dear all,

As i am new to this environmet, i need all your suggestion about following problem.

 

I have 2 columns called "emp code" and "entry time". In my table  same "emp code" will be in multiple rows with their each day's time entry entered in "entry time" column of multple rows.  Now i need to summerise this like, for one "emp code"  how many "0" entry(count) in ""entry time"  column. And like this for each unique emp id, how many 0 entries exist to be created in separate calculated column.

Please help me in this.

 

Regards,

Mahesh

1 ACCEPTED SOLUTION

Hi @Anonymous 

 

Try this

Measure = 
CALCULATE(
    COUNTROWS( 'Table' ),
    'Table'[entry time] = 0
)
Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

View solution in original post

4 REPLIES 4
Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

Can you provide a data sample?

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

Anonymous
Not applicable

Actual_issue.PNGExpected_result.PNG

@Mariusz First one is issue and 2nd is expected result.

And like this, multple ”emp code” will be there in same "emp code” column and for each, i need to get the total count of 0s and to be displayed like 2nd image.

 

Thanks for your support!

 

Regards,

Pon maheswaran K

Hi @Anonymous 

 

Try this

Measure = 
CALCULATE(
    COUNTROWS( 'Table' ),
    'Table'[entry time] = 0
)
Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

Anonymous
Not applicable

Dear @Mariusz ,

Thanks for your reply. it is working as expected. Thanks for your timely support.

 

Regards,

Pon.

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.