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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare 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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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