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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
In the following photo we have a naming tool that is used in a warehouse. If we took the left side of the chart it is named as (A-B-3066), and the right side (A-CD6200-6799) and both are from (Level 2) data.
The desired function: search the string for how many (-) there are, then return the level of the given data and to distinguish that the right side is also a level 2 data type.
Thanks in advance.
Hi,
Power BI can’t take pictures as data source. But if you had data like it in the picture below and wanted to calculate the level, this formula would help you.
The columns in red square just show the steps.
FinalFormula =
LEN ( Table1[Name] ) - LEN ( SUBSTITUTE ( Table1[Name], "-", "" ) )
Best Regards!
Dale
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.