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

Count elements of Lists

Hi,

 

I have a table with Lists for each row and I would like to count the number of elements that each List has, see image:

 
 

List_in_rows.PNG

= Table.Group(#"Filtered Rows", {"OpportunityId"}, {{"Count", each List.Distinct([LoB]), type nullable Int64.Type}})

 

Thank you,

 

Guillermo

1 ACCEPTED SOLUTION
Anonymous
Not applicable

if you need only the count of distinct [Lob]element of groups, change the expression in this way

 

= Table.Group(#"Filtered Rows", {"OpportunityId"}, {{"Count", each List.Count(List.Distinct([LoB])), type nullable Int64.Type}})

View solution in original post

1 REPLY 1
Anonymous
Not applicable

if you need only the count of distinct [Lob]element of groups, change the expression in this way

 

= Table.Group(#"Filtered Rows", {"OpportunityId"}, {{"Count", each List.Count(List.Distinct([LoB])), type nullable Int64.Type}})

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.

Top Solution Authors
Top Kudoed Authors