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.
Hi All
Getting into something that would be pretty easy in Excel but im struggling in Power BI
I have a list of product, some of them are current, some of them are legacy
I want a formula that creates a new column, marking it as current or legacy
EG, IF (X = A or B or C, Current, Legacy)
What would be the easiest way to do this? Can i also point X to look at a seperate Table (there is quite a few current products, but even more legacy ones)
Thanks heaps in advance
Tyler
In the query editor, you can add a column with formula:
= if List.Contains({4,5},[ProdID]) then "Current" else "Legacy"
{4,5} is the list with current products, which might be replaced by a table/column, e.g. CurrentProducts[ProdID]
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 |
---|---|
113 | |
103 | |
77 | |
66 | |
63 |
User | Count |
---|---|
142 | |
105 | |
102 | |
81 | |
68 |