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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.