Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi everyone
I'm trying to extract urls from twitter messages and placing in another column using DAX. I've been using this formula in excel to extract and it works fine:
=MID(A1,FIND("http",A1),IFERROR(FIND(" ",A1,FIND("http",A1))-1,LEN(A1))-FIND("http",A1)+1)
However I'm strugging to replicate/see how to do this in DAX. Any help greatly appreciated!
Thanks
Ben
Solved! Go to Solution.
Hi Matt and Baskar - I've followed your suggestion Matt and sorted the problem starting from Query Editor>Transform>Split Column>By Delimiter>Custom>"https".
Thanks again!
Cheers
Ben
I agree, you need to post an example. But I also think this is a task for data shaping in power query (get data) and not DAX.
Hi
Thanks for getting back to me and good point on power query.
Screen grab of examples below - as you can see the urls aren't always in the same spot:
Thanks
Ben
How about using power query to split column on colon : then rebuild the URL http:// from there
Hi Matt
Thanks for this - will do. Apologies for my ignorance but is there anyway I can bring across to power query the actual excel formula I have?
Regards
Ben
No way unfortunately. But using the power query UZi is much easier than writing Excel formulas.
Thanks Matt - I'll give it a go in Power Query
Regards
Ben
Hey Ben ,
Do u want like this ?
Hi
I'm giving the Power Query option a go but your screen shot look good - basically where ever there is a url it gets taken out and put in another column (s).
Thanks
Ben
Hi Matt and Baskar - I've followed your suggestion Matt and sorted the problem starting from Query Editor>Transform>Split Column>By Delimiter>Custom>"https".
Thanks again!
Cheers
Ben
Hey pls give an a example . like screen short what u have and what u excatly want ..
like this, This will help me to solve ur prob
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
78 | |
78 | |
58 | |
35 | |
32 |
User | Count |
---|---|
99 | |
59 | |
56 | |
46 | |
40 |