Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Combining Summarize and Lookupvalue

Hi,

 

Im struggling with the following, any help is much appreciated. I have a table called "Product" with information and a newly created Table called "Information" where some of the information from table "Product" needs to be placed.

 

Table Product

NameProduct TypeAmount
RedBike2
BluePlane5
BlackBoat7
RedTree1
BlackTable4
PurpleBike10
PurplePlane2
RedBike4
PurpleBike1

 

The data that i want to store in the newly created table called "Information" is the name and amount where the product type is Bike

 

(New) Table Information

NameAmount
Red6
Purple11

 

Thank you very much for your help.

 

Peter

  • Perhaps:

     

    New Table = 
        SUMMARIZE(
          FILTER('Table',[Product Type] = "Bike"),
          [Name],
          "Amount",SUM('Table'[Amount])
        )
    

3 Replies

  • Anonymous , Try like

    summarize(filter(Table,Table[Product Type]="Bike"),table[Name], "Amount", sum(Table[Amount]))

    If you put a Slicer of Product Type and filter Bike and use any visual with Name and sum of Amount. you should get this

    • Anonymous's avatar
      Anonymous
      Not applicable

      Very much appreciated Amitchandak. Will try it now.

       

      Thanks 

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    Perhaps:

     

    New Table = 
        SUMMARIZE(
          FILTER('Table',[Product Type] = "Bike"),
          [Name],
          "Amount",SUM('Table'[Amount])
        )