Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Need Help in calculating count of suburb

Hi,

I have following row in source

KeywordSearch_TypeSearch_CategorySuburbsBed RoomsDate Inserted
Perth-regionResidentialFor SaleAveley;Bailup;Ballajura1,2,301/04/2019 15:04:01
Perth-regionResidentialFor SaleAveley;Bailup1,201/04/2019 17:01:05

I have converted following row to multiple rows

SEARCH_SIDKeywordSearch_TypeSearch_CategorySuburbBedRoomsDate Insert
1Perth-regionResidentialFor SaleAveley11/04/2019 15:04
1Perth-regionResidentialFor SaleBailup11/04/2019 15:04
1Perth-regionResidentialFor SaleBallajura11/04/2019 15:04
1Perth-regionResidentialFor SaleAveley21/04/2019 15:04
1Perth-regionResidentialFor SaleBailup21/04/2019 15:04
1Perth-regionResidentialFor SaleBallajura21/04/2019 15:04
1Perth-regionResidentialFor SaleAveley31/04/2019 15:04
1Perth-regionResidentialFor SaleBailup31/04/2019 15:04
1Perth-regionResidentialFor SaleBallajura31/04/2019 15:04
2Perth-regionResidentialFor SaleAveley11/04/2019 17:01
2Perth-regionResidentialFor SaleBailup11/04/2019 17:01
2Perth-regionResidentialFor SaleAveley21/04/2019 17:01
2Perth-regionResidentialFor SaleBailup21/04/2019 17:01

Now, I need to get count of suburb searched for that day I should be getting 5 accounding to source data. I am getting 13 coz of split of data. If anyone have idea about how I can solve this issue it will be great help.

 

1 ACCEPTED SOLUTION
PattemManohar
Community Champion
Community Champion

@Anonymous  Please try this as a New Measure.

 

Test300 = 
VAR _Table = SUMMARIZE(Test300DistinctCount,Test300DistinctCount[SEARCH_SID],"Count",DISTINCTCOUNT(Test300DistinctCount[Suburb]))
RETURN SUMX(_Table,[Count])

image.png





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




View solution in original post

3 REPLIES 3
PattemManohar
Community Champion
Community Champion

@Anonymous  Please try this as a New Measure.

 

Test300 = 
VAR _Table = SUMMARIZE(Test300DistinctCount,Test300DistinctCount[SEARCH_SID],"Count",DISTINCTCOUNT(Test300DistinctCount[Suburb]))
RETURN SUMX(_Table,[Count])

image.png





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Anonymous
Not applicable

Perfect! This is what I was looking. Thank you!

AkhilAshok
Solution Sage
Solution Sage

Why not do a DISTINCTCOUNT?

 

Suburb Count = DISTINCTCOUNT(Table[Suburb])

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors