Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
cinsbox
Frequent Visitor

Create two slicers from two different name fields then sync them into one slicer

Hi I am working off a "master data list" which consists of merges of several data lists to create a Dashboard.  I have two name fields in the master list which are used to filter the visuals.  For ease of use, I would like to create two name slicers that consist of the name set of individual names and sync them into one.  However, when I tried to do it, the single slicer is not giving me the right counts, it seems that there's a hierarchy given to one of the name fields.  

 

The name fields are "ACTION SOLICITOR NAME" and "PROSMGR SOLICITOR NAME."  

Capture.PNG

Since the two name fields are on the same master list, when I click on the individual name field slicer, it affects all of the visuals too.  Is there a way to make one slicer for the names and then have the names display the visuals according to what the individual slicer intends to?  

 

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @cinsbox 

 

You can try the following methods.
Sample data:

vzhangti_0-1671089999690.png

Create a table with only Name as a slicer.

Slicer = UNION(VALUES('Table'[ACTION SOLICITOR NAME]),VALUES('Table'[PROSMGR SOLICITOR NAME]))

vzhangti_1-1671090046345.png

Measure =
IF (
    OR (
        SELECTEDVALUE ( Slicer[Slicer] ) = SELECTEDVALUE ( 'Table'[ACTION SOLICITOR NAME] ),
        SELECTEDVALUE ( Slicer[Slicer] ) = SELECTEDVALUE ( 'Table'[PROSMGR SOLICITOR NAME] )
    ),
    1,
    0
)

vzhangti_2-1671090245710.png

Hope this method helps you.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Deevo_
Resolver I
Resolver I

Hi there, This post is very helpful.

  • I have modified this slicer formula to suit my own requirements and include a second column when creating the "Slicer".

Example: 

Slicer =
DISTINCT(
        UNION(SUMMARIZE('Teams', 'Teams'[Division], 'Teams'[Branch]),SUMMARIZE('Project_Codes', 'Project_Codes'[Division], 'Project_Codes'[Branch]))
            )
  • How can i modify the "Measure" to allow the user to select the field [Division] and/or [Branch] from the page slicer??

Current measure that only works for [Division]:

Measure =
IF (
    OR (
        SELECTEDVALUE ( 'Slicer'[Division] ) = SELECTEDVALUE ( 'Teams'[Division] ),
        SELECTEDVALUE ( 'Slicer'[Division] ) = SELECTEDVALUE ( 'Project_Codes'[Division] )
    ),
    1,
    0
)

 

Many thanks!

v-zhangti
Community Support
Community Support

Hi, @cinsbox 

 

You can try the following methods.
Sample data:

vzhangti_0-1671089999690.png

Create a table with only Name as a slicer.

Slicer = UNION(VALUES('Table'[ACTION SOLICITOR NAME]),VALUES('Table'[PROSMGR SOLICITOR NAME]))

vzhangti_1-1671090046345.png

Measure =
IF (
    OR (
        SELECTEDVALUE ( Slicer[Slicer] ) = SELECTEDVALUE ( 'Table'[ACTION SOLICITOR NAME] ),
        SELECTEDVALUE ( Slicer[Slicer] ) = SELECTEDVALUE ( 'Table'[PROSMGR SOLICITOR NAME] )
    ),
    1,
    0
)

vzhangti_2-1671090245710.png

Hope this method helps you.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.