This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi folks.
I'm trying to verify if a text contais "#<number>." (Hashtag, number and a dot) and this number can be anyone (from 0 to infinity)
Can anyone help me with powerquery formula?
TY!
Solved! Go to Solution.
@Anonymous
1. Create custom function 'fnRegExpExtract':
let fx=(txt as text)=>
Web.Page(
"<script>
var x = '"& txt & "';
var delim = '-';
var pattern= /" & "\#\d*\." & "/gi;
var result=x.match(pattern).join(delim);
document.write(result);
</script>")[Data]{0}[Children]{0}[Children]{1}[Text]{0}
in
fx
2. Add new column by 'Invoke custom function', choose function and column with data or add this code;
Table.AddColumn(prev_step, "fnRegExpExtract", each try fnRegExpExtract([column_with_data]) otherwise null)
@Anonymous
1. Create custom function 'fnRegExpExtract':
let fx=(txt as text)=>
Web.Page(
"<script>
var x = '"& txt & "';
var delim = '-';
var pattern= /" & "\#\d*\." & "/gi;
var result=x.match(pattern).join(delim);
document.write(result);
</script>")[Data]{0}[Children]{0}[Children]{1}[Text]{0}
in
fx
2. Add new column by 'Invoke custom function', choose function and column with data or add this code;
Table.AddColumn(prev_step, "fnRegExpExtract", each try fnRegExpExtract([column_with_data]) otherwise null)
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 30 | |
| 26 | |
| 25 | |
| 22 | |
| 13 |
| User | Count |
|---|---|
| 58 | |
| 50 | |
| 26 | |
| 20 | |
| 19 |