One problem which forced me to pause for thought recently was how to dynamically filter data in Power BI. Eg: Filtering data by a date range to only show sales for the last 7 days.
I believe the two simplest options are using either the Q&A natural query language or using Power BI Desktop’s built in Date/Time filter options found in the query editor, both of which have been documented below.
Option 1 – Using the Power BI web app
Using the Q&A text box of your dashboard you can simply ask in “natural language” to see your data from the last 7 days, as shown in the screenshot below. This can then be pinned to the dashboard if it is a question you are going to ask on regular basis.
This does take a little bit of tweaking to get the desired results as you are relying on the Power BI engine to understand your query.
Fortunately if no results are found Power BI does give you some suggestions should it not be able to find useful answers to your question, as shown in the screenshot below.
Option 2 – Using the Power BI Desktop app
When you import data using Power BI Desktop you are greeted with the Query Editor, from here you can click the drop down arrow for the date column in question. Next select Date/Time Filters and you will be exposed to a number of filtering options unavailable in the reports or dashboard tabs, From here I have selected “In the Previous”.
Once you have selected your filter (eg: In the Previous) all you need to do is set how many days you want to count back. In this instance the result of this filter means that I am only going to see data in my reports where the Created Date is in the previous 7 days.
The Microsoft Power BI team have already included a few useful built in filters, such as the Year To Date filter shown in the screenshot below.
Passing DP-900 Azure Data Fundamentals
Back in December, I took the DP-900 Azure Data Fundamentals exam which is one of
Feb
Real-time Dashboards Provide Transparency to Everyone
Real-time dashboards enable data analytics firm Adatis to be agile and transparent with its team
Feb
Data is creating a new age of business agility
Developing a data strategy is central to ensuring your business can respond to disruptions and
Feb
Visualising your Infrastructure with Terraform Graph With VS-Code
Pre-Requisites Terraform VS-Code Terraform Extensions in VS-Code Overview An interesting and useful module that comes
Feb
Meet the Team – Kalina Ivanova, Junior Consultant
Next up in our series of Meet the Team blogs we are introducing you to
Feb
Meet the Team – Catherine Sachdev, Marketing Assistant
Next up we’re introducing you to Catherine Sachdev. Catherine joined us just over a year
Jan
Data Lineage with Azure Purview
I wrote an introductory Purview blog post previously, where I explored what the tool is
Jan
The Next Era of Retail: How Technology is driving change in a COVID-19 World
The retail sector is of great importance and accounts for almost 5% of GDP and
Jan