Using Python to Filter Data in Power Query
In our previous post, we installed and set up Python to use with Power BIÂ and used Python as a data source. Let’s look at how Python can be used to filter data inside Power Query. Let’s filter records where the number of Employees is greater than 5000. We will use the query: [sourcecode language=”Python”] # ‘dataset’ holds the input data for this script import pandas as pd dataset_filtered = dataset.query(‘Employees … Continue reading Using Python to Filter Data in Power Query