Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi All,
I'm coming from Qlikview world, so i'm looking the equivalent of SUBSTRING function.
So, this function will return a string in a specific position, exemple
Value : TD_AA_BB
i wan to have what after the second "_". Then in Qlikview the function will be Substring("TD_AA_BB","_",2)
Do you how can i do to get the same in Power Bi ?
Thanks
Solved! Go to Solution.
You need to use the function
MID(Txt, StartPosition, NumberOfCharacters)
You need to use the function
MID(Txt, StartPosition, NumberOfCharacters)
Thanks, it works well.
But, do you know how can i do to not have the (Blank) value ?
This is my expression :
APP_Cible = if(left(v_hist_usage_sid[UserName];6)="US_BDF";mid(v_hist_usage_sid[UserName];8;3))
thanks
@nkasdali,
You can choose one of the following options to exclude the blank.
1. Drag the APP-Cible column to page level filters, then set its value as "Not blank".
2. Create a new column using DAX below.
newcolumn = IF(ISBLANK(v_hist_usage_sid[APP_Cible]);"enter your expected value";v_hist_usage_sid[APP_Cible])
Regards,
Lydia
"In Power BI" can mean either DAX (see previous post) or Power Query.
A Power Query solution would be to use the option Text After Delimiter under "Extract" in the "Transform" or "Add Column" menu.
Screenshot, including the generated formula that will give you the part after the second "_":
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 102 | |
| 79 | |
| 57 | |
| 51 | |
| 46 |