Power BI: filter using another table before loading data
Before loading the data, I may filter to not import all of them, normally, I used to remove blank/empty values but sometimes, I may want to exclude for instance, 2 specific values, so it is quite simple but what happens if my excluding list is huge !!!
In such situation, I will use a table and the merge queries option. I have this main table called table1:
And this table called table2 with the particular values:
How can I exclude or load only those specific values ? But before to begin, to code in “advanced editor”, I can declare them like that:
Listvalue = Text.Combine(yourtable[yourcolumn], ", "),
NOTE: for more information, read Power BI: combine multiple values
Going back to the main subject, from the Power Query Editor, I will select table1 then I will click on this option:
From here, the process will be different if I want to exclude or to load table2.
Excluding option
For this option, make sure to select like in the picture the “join kind” field:
From the result, I can remove or keep the “table2” column:
Loading option
For this option, make sure to select like in the picture the “join kind” field:
From the result, I can remove or expand the “table2” column to get the “status”:

Interesting Topics
-
Be successfully certified ITIL 4 Managing Professional
Study, study and study, I couldn’t be successfully certified without studying it, if you are interested...
-
Be successfully certified ITIL 4 Strategic Leader
With my ITIL 4 Managing Professional certification (ITIL MP) in the pocket, it was time to go for the...
-
Hide visual and change background color based on selection
Some small tricks to customize the background colour of a text box...
-
Stacked and clustered column chart or double stacked column chart
In excel, I use a lot the combination of clustered and stacked chart...
-
Refresh Power BI
From the Power BI Service, I can set refresh but, for instance, there is no option to do it monthly or each time a change is made...
-
Power BI alerts to be sent by email from an excel file based on condition
I will explain how to send a list of emails from an excel file after creating alerts...






