excel - DAX: Calculated Column with Multiple Tables Filter -


this relates adding calculated column table fetches rows 2 other tables based on criteria.

consider model this:

enter image description here

i want come calculated column called 'budget material consumption' in table 'actual material utilization'. should calculate how material should have been utilized in order produce products sold per standard recipe table.

i wanted use following formula not working:

=calculate( sum(recipe[rm_qty]) * sum(sales[qty]) , filter(recipe, recipe[rm_id]=utilization[rm_id]) , filter(sales,sales[product_id]=recipe[product_id]) ) 

hope able explain query fine.

regards.


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -