Forum Discussion

apoje's avatar
apoje
Helper II
5 years ago
Solved

How to replace one item with a different one – apply transformation?

Hi,   I would like to transform one of my items in the database based on its variation number. The end result would be a transformation of the variation number and multiplication of its quantity c...
  • shaowu459's avatar
    5 years ago

    Hi, apoje 

     

    Try this, for 100,000 lines please wait about 20 seconds to upload to excel.

    let
        Source = Excel.CurrentWorkbook(){[Name="Table25"]}[Content],
        Custom1 = Table.FromRecords(List.Transform(Table.ToRecords(Source),each if [Variation.Number]="0527" then _&[Variation.Number=1999]&[Quantity=[Quantity]*10] else _))
    in
        Custom1