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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
MarshalSK
Resolver I
Resolver I

How to calculate record count

Hi Folks, Need you assistance to count records in summarized table.

 

Sample Data:

 

CountryCityStateSales
United StatesHoustonTexas50
United StatesPhiladelphiaPennsylvania200
United StatesLos AngelesCalifornia340
United StatesHuntsvilleTexas100
United StatesHuntsvilleTexas200
United StatesLaredoTexas300
United StatesLaredoTexas400
United StatesLaredoTexas200

 

Expected Result:

MarshalSK_2-1708829745852.png

 

MarshalSK_0-1708828517374.png

 

1 ACCEPTED SOLUTION

Hi @MarshalSK 
In this scenario you can create a calculated column :

Ritaf1983_0-1708830470958.pngRitaf1983_1-1708830507225.png

The updated pbix is attached

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

5 REPLIES 5
Ritaf1983
Super User
Super User

Hi @MarshalSK 
You can use the basic countrows Dax function

Ritaf1983_0-1708829246473.png

pbix is attached

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Hi @Ritaf1983 , DAX should work for below scenario as well.

 

MarshalSK_0-1708829839287.png

 

Hi @MarshalSK 
In this scenario you can create a calculated column :

Ritaf1983_0-1708830470958.pngRitaf1983_1-1708830507225.png

The updated pbix is attached

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

@Ritaf1983 Perfect Thanks

Happy to help😊

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

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.

Top Solution Authors