Hi,
I’m trying to create a new measure ‘SalesWest’ in Power BI Desktop but I can’t make it work. I’m working with the table below:
Table 1 / factSales
-----------------------------
id | storeid | quantity | amount
-----------------------------
1 | 1 | 1 | 100
2 | 1 | 1 | 100
3 | 3 | 2 | 200
4 | 4 | 3 | 300
5 | 4 | 3 | 300
6 | 4 | 6 | 600
Table 2 / dimStores
-----------------------------
storeid | name
-----------------------------
1 | west
2 | north
3 | east
4 | south
I would like to create a measure that sums all sales where the Store is West and the Sales Quantity is not equal to 2.
I tried to use the calculated function, but when I tried to insert two filters, I got an error that says: "The value cannot for “…” cannot be determined. Either “…” doesn’t exist, or there is not a current row for a column named “…”.
What function should I use then?