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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -