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.
Trying to create a new column that is a concatenation of a number(a.value) and text(UOM). Im pulling from a sql db on this. A problem Im having is my number is stored as a number. I tried to use convert(varchar,a.value) but the output is 12.000000000, I need to slice out the zero's to make this 12 as text so I can merge with my UOM to get 12 oz.
Solved! Go to Solution.
Try wrapping an INT around the a.value
New Column = INT( table[number col] ) & " - " & table[UOM]
It does create an integer, but that is just to strip the decimals. The & operator then implicitly converts the integer to text by concatenating it to a text value.
Try wrapping an INT around the a.value
New Column = INT( table[number col] ) & " - " & table[UOM]
Doesnt this create an integer? I want the number col as text
It does create an integer, but that is just to strip the decimals. The & operator then implicitly converts the integer to text by concatenating it to a text value.
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 |
---|---|
109 | |
96 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
88 | |
63 |