cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 239 members 2,722 guests
Please welcome our newest community members: