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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
AmudhaKumaran
Helper I
Helper I

DAX - SUM

Hi Team,

I have a column with both numbers & Text. Is there a way to sum only numeric values in that column using a single measure?

Eg:

I have a table like shown below. I need a measure to show the sum of total events as 12(by adding 7 & 5 in cnt column).

AmudhaKumaran_0-1619680551611.png

Thanks in advance!

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @AmudhaKumaran ,

 

Please create a calculated column to check only for numeric data as below

check text/num = IFERROR ( VALUE ( 'Table (2)'[Total] ), 0 )
 

HusnaBanu413_0-1619683600142.png

 

Thereafter create a measure to sum the column



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

Appreciate your Kudos..!

Regards

Husna

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @AmudhaKumaran ,

 

Please create a calculated column to check only for numeric data as below

check text/num = IFERROR ( VALUE ( 'Table (2)'[Total] ), 0 )
 

HusnaBanu413_0-1619683600142.png

 

Thereafter create a measure to sum the column



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

Appreciate your Kudos..!

Regards

Husna

Hi @Anonymous ,

 

Thanks for yor response. What you suggested would absolutely work for a standalone dataset. However, I'm using a data model that is in datalake and I don't manage it. Means, I cannot create columns. I can only create measures withing my report. 

So that's why I'm trying to figure out my issue using a measure.

amitchandak
Super User
Super User

@AmudhaKumaran , I would advise to create a new numeric column in power query

refer: https://www.youtube.com/watch?v=YtCFAxD5qow

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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