Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago

#Need DAX Formula#

Hi All,

 

I need dax formula for some criteria which is explain below:

I have three table and i want unit cost from the next two table.

 

steps are below:

1. first of all, need to collect data from tblcostvalue with filtering item no and date (date can be <=date)

 

2. after that sum all values from tblcostvalue on item no with specific date:

such as : value=cost actual+cost expected

3.

then sum all values from tblItemQuantity on item no with specific date:

such as : totalQty=sum(Quantity)

4. averagecost=value/totalQty

5. insert averagecost into tblReason unit cost, by filtering date and item no.

 

Waiting for good feedback from comunity members.

1 Reply