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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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