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
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

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

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

@Ritaf1983 Perfect Thanks

Happy to help😊

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.