Forum Discussion

astrbac's avatar
astrbac
Frequent Visitor
7 years ago
Solved

Add Custom column based on string in another column (if device = "iPhone" or "iPad" then do this)?

Hi all!   I am just getting started with Power Query and "Get and transform" in general but have some previous understanding of more advanced Excel features (such as pivot tables, VBA and such). Th...
  • PattemManohar's avatar
    PattemManohar
    7 years ago

    astrbac If you just looking for the new column "Correct Total Sales" logic, then please add "Custom Column" in Power Query as below:

     

    if List.Contains({"iPhone","iPad","iPod"},[Platform]) then ([MobileSales]/2) + [WebSales] else [MobileSales] + [WebSales]