Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Multiple filters using two tables DAX

I want to apply filters from two tables to count a numbe of items using DAX. Is this possible? In Excel would use vlookup and pivot.

 

From the two tables, I want to see how many items in the Vegetables category are sold.

 

Table 1:

 

     Item             Category

ApplesFruit
BananasFruit
BeltAccessory
BetrootVegetable
CandlesKitchenware
CarrotsVegetable
ChairLounge
EraserSchool Material
Foil WrapsKitchenware
Ice BlocksMisc
MicrowavesKitchenware
OrangesFruit
PeachesFruit
PencilsSchool Material
PhonesAccessory
ShirtClothing
ShoesClothing
SpinachVegetable
SpoonKitchenware
TableLounge
WatchAccessory

 

Table2:

     Items         Status

Apples Sold 
Bananas Instock 
Belt Instock 
Betroot Sold 
Candles Instock 
Carrots Instock 
Chair Instock 
Eraser Sold 
Foil Wraps Instock 
Ice Blocks Sold 
Microwaves Sold 
Oranges Instock 
Peaches Sold 
Pencils Sold 
Phones Instock 
Shirt Instock 
Shoes Sold 
Spinach Sold 
Spoon Sold 
Table Instock 
Watch Sold 

1 Reply