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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Chitemerere
Responsive Resident
Responsive Resident

Extract values from string using DAX

I have the following live Dataset (column "Response") being generated from Microsoft Flow and written to Power BI dataset:

 

Response

Value

Not available

0

1500

1500

2000 Dollars

2000

coût estimatif 260.000 USD

260000

NON

0

N/A

0

Based on FY 2019/2020 Budget 70,652 USD

70652

US$220,000.00

220000

 

I need to extract the numbers only as shown above in the column "Value" using DAX as i cannot use Power Query.  How can this be accomplished.

 

Regards,

Chris

7 REPLIES 7
Syndicate_Admin
Administrator
Administrator

Good afternoon, I'm looking for a feature in Power BI that allows me to extract everything after a specified word from a character string no matter where I find it within the column. Has anyone done this in Power BI?

Thank you in advance

amitchandak
Super User
Super User

@Chitemerere , see if this can help

https://docs.microsoft.com/en-us/dax/isnumber-function-dax

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks Amit.  I thought this will return "TRUE if the value is numeric; otherwise FALSE."

 

Regards,

Chris

mahoneypat
Microsoft Employee
Microsoft Employee

Another way would be to use Text.Select in the query editor.  Add a custom column with a formula like this

 

= Text.Select([ColumnWithNumbers], {"0".."9"})

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Thanks Pat.  This is a live connection to a Power BI Service Dataset so i cannot use Power Query.

 

Regards,

Chris

Greg_Deckler
Community Champion
Community Champion

@Chitemerere - Well, one way would be to use DAX to turn your strings into table variables. Then have a table that lists every possible charater you want to remove and remove any rows in that table then translate it back to a string. Although the years are going to pose problems. You can see some of the basic techniques here: 

https://community.powerbi.com/t5/Quick-Measures-Gallery/ARABIC/m-p/1083214#M519



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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thanks Greg for your input, most appreciated.

 

Regards,

Chris

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.