Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jwi1
Post Patron
Post Patron

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

2 ACCEPTED SOLUTIONS
VijayP
Super User
Super User

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




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


View solution in original post

amitchandak
Super User
Super User

@jwi1 

Try a measure like

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

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@jwi1 

Try a measure like

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

Problem solved, thanks!

VijayP
Super User
Super User

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




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


problem solved, thanks!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.