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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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