Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
97 | |
97 | |
82 | |
75 | |
66 |
User | Count |
---|---|
126 | |
105 | |
103 | |
81 | |
72 |