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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Slicer value dynamical selection of visual

Hi All,

 

There are 6 visuals on the page which display line chart for "no of orders" over time( month by month) a team receives. for example Team consists of 10 salesmen. 

To compare, the requirement is to let user select  upto 6 salesmen. Based on the selection of user, for exampe if user chooses 4 sales men, we wanted to show 4 visuals.

 

There are other ways to compare too but just wanted to stick with this idea to keep 6 visuas per page and show only no of visuals based on no of salesmen seleted.

 

Thanks in advance 

 

 

If I create this scenario with example it will be like

 

Salesman

SalesmanIDSaleman Name
1David
2Michael
3John
4Liza
5Andy
6Josh
7Felix
8Toby
9Adam
10Richard

 

Sales

SalesmanIDOrderDateOrderID
110/12/20201
14/4/20202
11/5/20203
27/7/20204
310/12/20205
44/8/20206
51/1/20207
410/12/20208
34/4/20209
67/8/202010
71/1/202011
810/12/202012
94/4/202013
87/9/202014
74/4/202015
410/12/202016
41/1/202017
34/6/202018
17/7/202019
210/12/202020
54/4/202021
61/1/202022
710/12/202023
107/10/202024
101/1/202025
1010/12/202026
101/10/202027
33/3/202028
65/5/202029
95/5/202030
110/12/202031
24/4/202032
31/10/202033
47/7/202034
510/12/202035
610/12/202036
74/4/202037
81/11/202038
97/11/202039
1010/12/202040
110/12/202041
24/4/202042
31/11/202043
47/7/202044
510/12/202045
611/12/202046
74/4/202047
81/1/202048
97/7/202049
1010/12/202050
110/12/202051
24/4/202052
31/1/202053
47/7/202054
510/12/202055
610/12/202056
74/4/202057
81/1/202058
96/11/202059
1012/12/202060
3 REPLIES 3
Anonymous
Not applicable

@Anonymous 

 

Instead of bookmarks, you could try to use the newest feature in some of the native visuals called "small multiples." Also, there are visuals in the store from third-party vendors that have small multiples enabled.

ERD
Super User
Super User

Hi @Anonymous ,

You need to play with bookmarks.

Here is an example: https://exceleratorbi.com.au/show-or-hide-a-power-bi-visual-based-on-selection/ 

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

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

Check out my latest demo report in the data story gallery.

Stand with Ukraine!


Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/

Thank you!

Anonymous
Not applicable

Thanks @ERD It very useful.

 

Do you know when user selects 6 Salesmen using below measure,

 
SelectedFilterSalesman =
VAR ConCat =
    CALCULATE (
      CONCATENATEX (
          VALUES (SALESMAN[Saleman Name] ),
          SALESMAN[Saleman Name] ,
          ",",
          SALESMAN[Saleman Name] , 1
      )
  )
VAR IsItFiltered =
   IF (
       ISFILTERED ( SALESMAN[Saleman Name] ),
       ConCat,
   0
 )
RETURN
   IsItFiltered

 

Result brings as

David, Felix, Liza, Michael, Richard, Toby

 

What will be the DAX to store [SelectedFilterSalesman] into 6 measures having each salesman name?

 

Regards

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors