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
trndlnd
Frequent Visitor

Count duplicated rows as one if...

I need help with couting duplicated rows if there is data in at least one column.

 

As you can see in the date column there are duplicates. I want the date/hours to be counted only once, but only if there is data in  at least one of "Count 1", "Count 2" or "Count 3". 

 

 

trndlnd_2-1705659682955.png

 

 

 

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

4 REPLIES 4
Ahmedx
Super User
Super User

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Ahmedx
Super User
Super User

pls try this

Screenshot_1.png

Thanks! I combined your answer with @amitchandak's answer by adding [Date] at the end so that it only counted the registration as one.

Flag1 = IF(([Count1] + [Count2] + [Count3])>0, [Date])

 

amitchandak
Super User
Super User

@trndlnd , Try  a measure like

 

Countrows(Summarize(filter(Table, [Count1] >0 || [Count2]>0 || [Count3]>0),Table[Date]))

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.