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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

count the numerical values in a rows

hlo experts,

     

count the numerical values in a rows. how bring only numerical values on below screen shot (DAX), COUNT=2

please advise me .

counting1.PNG

1 ACCEPTED SOLUTION
v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

You may create column and measure like DAX below.

 

Column: IsNum= IF (ISERROR ( VALUE ('Table'[Employee no])),"No","Yes")

 

Measure: Count_Num= CALCULATE(COUNT('Table'[Employee no]),FILTER('Table','Table'[IsNum]="Yes"))

 

Best Regards,

Amy

 

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

View solution in original post

2 REPLIES 2
v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

You may create column and measure like DAX below.

 

Column: IsNum= IF (ISERROR ( VALUE ('Table'[Employee no])),"No","Yes")

 

Measure: Count_Num= CALCULATE(COUNT('Table'[Employee no]),FILTER('Table','Table'[IsNum]="Yes"))

 

Best Regards,

Amy

 

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

JosefPrakljacic
Solution Sage
Solution Sage

Hey @Anonymous ,

 

you can use the Dax Function ISNUMBER to determine if its a number and after that you can filter it out or whatever you want.

 

If this post was helpful may I ask you to mark it as solution and give it a 'thumbs up'? This will also help others

Have a nice day!

BR,
Josef
Graz - Austria

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.