cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
usman96 Regular Visitor
Regular Visitor

how to write this formula in PowerBI ?

I have written a formula in Tableau  which is this

 

([Per Unit Price ($)]-[Per Unit Cost ($)])*[Units Sold]

 

now i want to write in powerbi  

can someone show me how to write it in PowerBI

 

1 ACCEPTED SOLUTION

Accepted Solutions
bsas Member
Member

Re: how to write this formula in PowerBI ?

Hi,

 

It depends if you want to use calculated column or measure. For calculated column just write: test_column = (unit price - unit cost)*Units sold. In case of measure: test_meamure = (sum(unit price) - sum(unit cost))*sum(unit sold).

View solution in original post

1 REPLY 1
bsas Member
Member

Re: how to write this formula in PowerBI ?

Hi,

 

It depends if you want to use calculated column or measure. For calculated column just write: test_column = (unit price - unit cost)*Units sold. In case of measure: test_meamure = (sum(unit price) - sum(unit cost))*sum(unit sold).

View solution in original post

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

January 2020 Community Highlights

January 2020 Community Highlights

Make sure you didn't miss any of the things that happened in the community in January!

Top Solution Authors