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
Anonymous
Not applicable

DAX Measure - CountIF the unique ID is more than 19

Hi,

 

I've got the following measure, that gives me the number of Dev areas a person has which are either T or AT at a gven point in time. There are 24 areas in total, 5 don't count. I then need to count the number of UId that have a result of 19 so I can then calculate an overall percentage.

I'm a bit stuck on counting the UId's and would appreciate any help.

TIA
Ann

 

aguest1005_0-1612298327711.png

 

2 REPLIES 2
mahoneypat
Microsoft Employee
Microsoft Employee

Not totally sure what result you need.  Some sample data with the expected answer would be helpful to give a specific solution.  FYI on a better way to write the above, but I used DISTINCTCOUNT instead of COUNT.

 

NewMeasure = CALCULATE(DISTINCTCOUNT(TR_Pupil_EYFS[Unique Identifier]), EYFS_Typicality[Typicality] IN {"T", "AT"}, NOT(TY_Pupil_EYFS[Development Area] in {"People & Communities", "The World",  ...})

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

So the final answer I need is 4.

I've got 4 people who have a total count of 19 (Where the dev area is T or AT)

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.