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.
Hello,
I have a column with Product numbers that are as follows 6500N,76MR1,9ES00A and from these i would derive the Product Type as if the Product Number start with '65' then the Product Type is a,if starts with '76' then B and if starts with '9' then C.How do i do this the easiest way
Solved! Go to Solution.
In the PowerQuery window, you could click on the Add Column tab in the ribbon and choose a conditional column.
In the PowerQuery window, you could click on the Add Column tab in the ribbon and choose a conditional column.
The original Code created by Power Query was this:
I simply changed the code directly in the Formula Bar to be like this:
= Table.AddColumn(_Customers, "Age", each 2016 - Date.Year([BirthDate]), type number)
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 |
---|---|
112 | |
97 | |
82 | |
67 | |
61 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |