Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Solved! Go to Solution.
@Anonymous -
Maybe this explains how 11 is returned? 12 - 1 = 11
Proud to be a Super User!
@Anonymous -
Operator Precendence / Order of Operations seems to be messing up your calculation.
You could enclose with ( ) as:
LEN ( Customer[Customer] ) - ( SEARCH ( "(", Customer[Customer], 1, 0 ) - 1)or you could write two variables as:
Column =
VAR lenCust = LEN ( Customer[Customer] )
VAR searchParen = SEARCH ( "(", Customer[Customer], 1, 0 ) - 1
RETURN lenCust - searchParen
Proud to be a Super User!
Hi Chris,
Thank you for your reply. I know how to get the right total since 11 is the correct total. My issue is I am not understanding how The Value of LEN('Customer'[Customer]) – SEARCH("(",'Customer'[Customer],1,0) – 1 equals 11.
If the Length is 27 and the value of the Search is 14, then how is it possible that statement equals 11 instead of 13 when 27 - 14 = 13. I'm needing someone to explain how the 11 is derived.
Kind Regards,
Hexagony
@Anonymous -
Maybe this explains how 11 is returned? 12 - 1 = 11
Proud to be a Super User!
That's fantastic Chris! I totally understand it now. Thank you so much!
Kind Regards,
Hexagony
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 64 | |
| 32 | |
| 31 | |
| 27 |