Skip to main content

Sync Slicers In Power BI

Overview
In this article, we will learn how we can apply Sync Slicer in Power BI Desktop.
This new feature is recently released in February 2018 update of Power BI Desktop.
TIP - Please make sure, before we try this new feature, that you have an updated version of Power BI Desktop.
What do we mean by Sync Slicer?
Power BI already provided a feature of the slicer to filter the data.
Below is a list of all different type of slicers.
  • Dropdown
  • Numeric Slicer
  • Date range Slicer
  • List
  • Relative
If we apply “Sync” slicer, then it is synchronized to all the pages where this filter or slicer have been applied.
Example:
In my report, suppose there are 15 pages. I have applied date range slicer to my first page. Now, I will sync that slicer to Page 2 and Page 3.
If I select a date range to filter the data in Page 2, then my Page 1 and Page 2 data will also be filtered because my slicer is in “Sync” mode.
Now, let’s demonstrate this feature.
Scenario
I have already created one report having 4 Pages.
On Page 1, I have applied the following slicers.
  • Department Name – List Slicer
  • Hire Date – Relative/Date Slicer
  • Job Title – Dropdown Slicer
  • Salary – Numeric Slicer
Now, I want to “Sync” slicer for “Job Title”.
The below screenshot shows my sample report having 4 pages and the above-stated slicers.

 
Step1
Select “Job Title” slicer > Open View Menu > Click “Sync slicer”.
 
Step 2
It will open setting for Sync Slicers.
 
It has following three options,
  • Add to allAllow slicer to be synced in every page of report
  • Visible Allow slicer to be visible in selected Page. (Slicer is visible on the selected page but not synced. It means if we apply filter by selecting any job title it will not be synced to another page)
  • Sync Allow slicer to be synced in selected Page. (Slicer is not visible, but it is synced)
As per our choice, we can choose different options having the following combinations,
  • Visible only
  • Sync Only
  • Sync + Visible
  • All Visible
  • All Sync
  • All Visible + All Sync
Step 3
Now, let’s sync visible slicer on Page 1 and Page 2.
Below is a screenshot of Page 1 and Page 2 before applying sync slicer.

 

 
Now, let’s change sync filter setting.

 
Let’s check Page 2.
It will show a slicer named “Job Title".
 
Let’s Test.
Let’s select “Administration vice President” from the dropdown.

 
It will filter data in Page 1 and Page 2.
Below are the results.

 
Now, let’s check the following use cases and check results.
  • Page 1 Visible + Page 2 Visible = Slicer will be visible on both the pages but results will not be synced.
  • Page 1 Visible and Sync + Page 2 Sync = Slicer will only visible to Page 1, but filter results are synced in both the Pages.
Conclusion
Now, I hope this “Sync” concept is cleared up in your mind.
Try this new rolled out amazing feature and share your experience with me.

Comments

Popular posts from this blog

How To Lock Objects In Power BI

Overview Sometimes, there is a situation where when we open a report and click on any visual it accidentally nudges a chart a little bit to the right or left. Sometimes, by mistake when viewing a report, the arrangement of visuals scatters a little bit. Microsoft rolls out one new amazing feature to resolve this issue, that is, Lock Objects in Power BI. Advantages of using this feature When our purpose is to only view a report, this feature is a boon for us. Visualization’s position is not changed. Saves a lot of the developer's time to resolve the position related issues. Note   -  This feature is not saved with the report. So, every time you open a report, you need to enable this feature. Now, let’s understand this feature in a brief manner. To understand this, I will first show you one report in which I have not enabled “Lock Objects” feature. Step 1 The below screenshot shows my report which doesn’t have the enabled Lock Objects feature. ...

How to partition or split DataTable in C#?

Today we will discuss how we can divide or split a very large data table into fixed size of chunks? Scenario: Suppose there is a data table which has 1000 Rows. When you perform for each loop on data table and read each row at that time it will take too much time. If we devide 1000 Rows datatable into 10 fixed sizes (e.g. 100 Rows) datatable, It will take less time. Let's check how to achieve it. Here is a code. private static List<DataTable> SplitTable(DataTable originalTable, int batchSize) { List<DataTable> tables = new List<DataTable>(); int i = 0; int j = 1; DataTable newDt = originalTable.Clone(); newDt.TableName = "Table_" + j; newDt.Clear(); foreach (DataRow row in originalTable.Rows) { DataRow newRow = newDt.NewRow(); newRow.ItemArray = row.ItemArray; newDt.Rows.Add(newRow); i++; if (i == batchSize) ...

Install Power BI PowerShell On Your Windows Machine

Overview : In this article, we will learn how we can easily install PowerShell for the Power BI on our machine. Installation of PowerShell for Power BI is very easy, and I have tested it. So, let’s get started! Notes before you start Check your current Windows PowerShell version using the following code snippet. $psversiontable   Make sure you have the latest version of PowerShell installed on your machine. I will recommend having PowerShell version 5.1 or more. If you have an older version, you are not able to install the PowerBI module. Update your .NET Framework with 4.7.2 or higher. Once we have the above two prerequisites, we are ready for the installation for the Power BI PowerShell. You can find Microsoft.PowerBI.PowerShell Module in the PowerShell Gallery. Here is a link for the same:   Click Here . You can also download it from Microsoft GIT repo:   Click here . Now, let’s start the process. Step 1 Open your Windows PowerShel...