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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.