I have two tables in a Power BI workspace:
Table 1
is derived from a query that extracts a list of orders and the products within them.
CustomerID OrderID ProductID Country Date
0010234 9235064 V24-GY UK 04/07/2018
0010234 9235064 AB5-84 UK 04/07/2018
0010234 9235064 RIM-3S UK 04/07/2018
0010234 4812623 V79-GY UK 27/09/2018
0049371 7924823 V24-GY UK 09/10/2018
0049371 7924823 59H-PW UK 09/10/2018
Table 2
contains a list of unique OrderID
values that included a certain product, X
(e.g. V24-GY
). This was created using SUMMARIZECOLUMNS
and applying a FILTER
that searched for product X
in Table 1
OrderID
9235064
7924823
I would like to use the OrderID
values in Table 2
as a filter for Table 1
so that I can create a new table, Table 3
.
CustomerID OrderID ProductID Country Date
0010234 9235064 V24-GY UK 04/07/2018
0010234 9235064 AB5-84 UK 04/07/2018
0010234 9235064 RIM-3S UK 04/07/2018
0049371 7924823 V24-GY UK 09/10/2018
0049371 7924823 59H-PW UK 09/10/2018
I've tried to use CALCULATETABLE
with FILTER
but Table 2
isn't recognized as a valid name/entity and so can't be used.
How can I get to Table 3
?
Table 2
separately or is it just an intermediate step to getTable 3
? – Alexis OlsonTable 3
to look like? It's possible you can skip the intermediate step altogether. – Alexis Olson