Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Need help with measure

Good day,

 

I have a very simple question, but so far I did not succeed to solve it 😁

 

Below is a simple table.

I added a column with a calculation:

total_listprice = SUM(table[order_amount] * price

 

But what if I want to make this calculation with a measure, how should this measure look like?

How should I cope with the 'price', as this is a only a value.

 

order_amountpartnumber_suppricedescriptiontotal listprice
10045002700785BEARING, SHAFT END7850
10045002701653BEARING6530
20045002701653BEARING13060
10700238002553WRENCH, REFRIGERATION2553
10700238012478WRENCH, OFFSET REFRIGERATION2478
    32471

 

Thanks!

John

  • The Measure would be 

    SUMX([Name of the Table],Order_qty*Price), this will help you without creating a column to get the visual. 

    with above measure you need not have another column which you have created with SUM function.

    You can understand this in my Video Example , you can look at 2:30 of Video and you will find how to use this formula

    You can watch many videos at my youtube channle (ref above link)

    If you find this as solution please mention this as solution and Share your Kudoes

    Regards

    Vijay Perepa

  • Anonymous 

    Try a measure like

    SUMX(table,table[order_amount] * table[price])

4 Replies

  • VijayP's avatar
    VijayP
    Community Champion

    The Measure would be 

    SUMX([Name of the Table],Order_qty*Price), this will help you without creating a column to get the visual. 

    with above measure you need not have another column which you have created with SUM function.

    You can understand this in my Video Example , you can look at 2:30 of Video and you will find how to use this formula

    You can watch many videos at my youtube channle (ref above link)

    If you find this as solution please mention this as solution and Share your Kudoes

    Regards

    Vijay Perepa

    • Anonymous's avatar
      Anonymous
      Not applicable

      problem solved, thanks!

  • Anonymous 

    Try a measure like

    SUMX(table,table[order_amount] * table[price])

    • Anonymous's avatar
      Anonymous
      Not applicable

      Problem solved, thanks!