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
carlosagarcia
Helper I
Helper I

Calculate price from a specific field

Hello everyone, I am trying to get the total price for a specifict column.

I have a Power Bi report that pulls the data from orders that are invoiced by the current date.

Some of those orders that get invoiced are drop shipments and I would like to know the difference in dollars between what we ship from our facility vrs what was dropped shipped.

 

I would like to create a calculated column that gives me the price of any BOL that has data under the drop shipment column.

 

Test.png

 

 

1 ACCEPTED SOLUTION
V-pazhen-msft
Community Support
Community Support

@carlosagarcia 

I think a simple DAX will do your favor: 


Column = IF(ISBLANK([DROPSHIP]) , 0 , Table[Price])

Best,
Paul


View solution in original post

2 REPLIES 2
V-pazhen-msft
Community Support
Community Support

@carlosagarcia 

I think a simple DAX will do your favor: 


Column = IF(ISBLANK([DROPSHIP]) , 0 , Table[Price])

Best,
Paul


Anonymous
Not applicable

Not sure if I am answering your question, but I have a couple ideas. 

 

If you want a calculated column with only the amounts that have a dropship marker, here is a formula I would use:

 

Column = IF(TableName[DROPSHIP]=BLANK() , 0 , TableName[Price] * TableName[Quantity])

 

Otherwise, If you dont constantly need that info, you can just use the visual filters to show DROPSHIP "is not blank".

 

Hope this helps.

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.