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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
LeonardCs
Helper I
Helper I

HELP WITH DAX

Hi guys,

 

I have a table with colummn that contains several numbers and I need to sum them.
It would be easy, but in this colummn I have some words together and I can't take this words.

 

for exemple:

 

Values:
10,00

20,00

not yet

30,00

loading

40,00....

 

 

How can I creat a measure that just sum the numbers disregarding the words?

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @LeonardCs 
Please try

Measure = 
SUMX ( 
    'Table',
    IFERROR ( 'Table'[Value] + 0, 0 )
)

View solution in original post

6 REPLIES 6
Greg_Deckler
Super User
Super User

@LeonardCs Try this. PBIX attached below signature.

Measure = 
    VAR __Table = 
        ADDCOLUMNS(
            'Table',
            "Column1", IF( ISERROR( [Values:] + 0 ), BLANK(), [Values:] + 0 )
        )
    VAR __Result = SUMX( __Table, [Column1] )
RETURN
    __Result


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Thank you for responding quickly

tamerj1
Super User
Super User

Hi @LeonardCs 
Please try

Measure = 
SUMX ( 
    'Table',
    IFERROR ( 'Table'[Value] + 0, 0 )
)

This was easier than I imagined! Thank you so much 🙏🙏

@tamerj1 Beat me by 15 seconds!! And nice one!



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Lol
It's been a while since I last answered a question in the forum.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.