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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
saranp780
Helper III
Helper III

How to count the same data?

If I have some data like this.

 

NameDistrict
AAUX01
AAUX02
BBUX01
BBUX01
AAUx02
AAUx02
AAUx02
BBUX01
BBUX01
AAUX01
AA

UX01

 

All I want to do, is I want to count Name and put it into District, for example,

AA=7 and AA in Ux01 = 3 and AA in Ux02 = 4.

BB=4 and AA in Ux01 = 4 without BB in Ux02.

 

 

Please, help me to tell the DAX that I can finish it.

Thank you all.

 

1 ACCEPTED SOLUTION
jthomson
Solution Sage
Solution Sage

Why would you need DAX to do this? Just put it into a matrix visual, just need a simple countrows measure for the values

View solution in original post

1 REPLY 1
jthomson
Solution Sage
Solution Sage

Why would you need DAX to do this? Just put it into a matrix visual, just need a simple countrows measure for the values

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.