I have a table called "_Vendor_List" in a spreadsheet and I use this to filter a query in that spreadsheet which I use for analytics.
Similarly, I would like to filter the same query in Power BI based on this same table. This works in excel, but I'm not sure if/how the syntax varies in Power BI for the Query.
My Excel Power Query Code is:
let
Source = Sql.Database("MyDatabase", "MY_DATA"),
ExcelTable = Excel.CurrentWorkbook(){[Name="_Vendor_List"]}[Content],
#"PerformanceTable" = Source{[Schema="dbo",Item="PerformanceTable"]}[Data],
Filter = Table.SelectRows(#"PerformanceTable", each List.Contains(ExcelTable[VENDOR], [VENDOR_CODE]))
in
Filter
Now I'm not sure if CurrentWorkbook
is usable in a power bi, so my question is how do I modify this to now filter the same query in Power BI using the same table (which will also be imported).
_Vendor_List
into Power BI, then either create a relationship or use DAX to filter measures based on this table – Nick.McDermaid