Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

Same wareID with different prices

Hey, 

I have a bit of an interesting (perhaps simple) predicament, where I have duplicate values in my dataset because some WareIDs have different prices depending on the amount sold. See example below; 

 

I.e. WareID in column 1 24070262 appears twice, because it has two different prices depending on the amount sold. Is there a way to get the second price (8,71) into the NewColumn, if the price is 10? (in order to "eliminate" the problem with duplicates)  

 

Alternatively, am I overthinking it and is there a more simple solution? 

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi,

    I am not sure what issue you are trying to solve, but maybe if you add an index column you would be able to work around that.

     

  • davehus's avatar
    davehus
    Icon for Memorable Member rankMemorable Member

    Hi Anonymous ,

     

    Could you group the columns in powerquery and return a max and minof prices 1 & 2 in it?

     

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi davehus 

      Hm, good idea. I'll mess around with it. Thanks for the input.