Forum

Notifications
Clear all

Default item from a dropdown list, when selecting a Slicer?

14 Posts
4 Users
0 Reactions
151 Views
(@name_it)
Posts: 8
Active Member
Topic starter
 

Hi everyone, 

I would like kindly to ask for some help. 

Problem: I would like when I click on the Slicer buttons to condition my dropdown list, which is returning a picture. / For this purpose I have used the XLookUp formula/. If the first item from the Slicer is selected, the product from the dropdown list, which is also in first position shows up, therefore I can see the picture. However, not all Categories ( defined by the Slicer) contain the same amount of products.

Question: Is there a possibility to setup the dropdown list by default to show the very first Item, when the Slicer tab is selected? I have tried - Vlookup, Filter, and Switch functions, but so far without a result.

Could it be that my approach is just wrong?
Note: I am using Office 365

Link:  Test_Example.xlsx

Thanks in advance,
Greetings
Tanique

 
Posted : 24/01/2024 5:09 am
(@keebellah)
Posts: 373
Reputable Member
 

I'm not sure if it works but you could generat a list in with the resulsts and link the Dropdown to this range.

You have not mentioned which version you are using but I cannot work with your file because all the pictures are UNKNOWN for my system.

 
Posted : 25/01/2024 5:56 pm
(@name_it)
Posts: 8
Active Member
Topic starter
 

"Could it be that my approach is just wrong?
Note: I am using Office 365"

That is the version I am using. Office 365., please do let me know If I have to add some more information.

 

The pictures can be found here:

https://1drv.ms/f/s!AuUWSgf3FXzwhCam0WeTqpJpoZep?e=arJA3B

I apologise if too much trouble 🙁 

 
Posted : 30/01/2024 7:51 am
(@keebellah)
Posts: 373
Reputable Member
 

I'll try and see if I can help you

 
Posted : 31/01/2024 10:29 am
(@keebellah)
Posts: 373
Reputable Member
 

I've got the pictures but the file refers to a pivot table whihc is not available.

Sorry for that. No help from this side

 
Posted : 31/01/2024 10:39 am
(@name_it)
Posts: 8
Active Member
Topic starter
 

Hello,

Thank you for the effort.

I am not sure what you mean. 

Please could you refer to which pivot table there isn't a connection?  So far it has all been placed on one sheet. And to me even if I work only through one drive, not as a downloaded file on a desktop, the dashboard is still working.

 

I would like really to solve this issue and perhaps I will try to recreate it again with a few pictures only. 

Tanique

 
Posted : 01/02/2024 2:47 am
(@name_it)
Posts: 8
Active Member
Topic starter
 

Hello Hans, 

I looked at the .excel file carefully and uploaded it again. Below I posted some pictures for clarification. 

Greetings, 

Tanique 

 

Forum_ref1.png

Picture showing XlookUp formula referring to Table named "Source".

Forum_ref3.png

Picture showing "Slicers" referring to the table named "Products".

Forum_ref2.png

Picture showing Data validation / Dropdown list / referring to the table Products, first column. 

 

Link here: Test_Example.xlsx https://1drv.ms/x/s!AuUWSgf3FXzwhEsXtIQ1uRz6vWX9?e=ee6jeC

 
Posted : 01/02/2024 3:30 am
Riny van Eekelen
(@riny)
Posts: 1195
Member Moderator
 

I took the liberty to change your set-up slightly. See attached and let me know if this works for you.

Had to remove the pictures as the file is too big otherwise. But it works as you intended if you put them back in.

 
Posted : 01/02/2024 3:41 am
(@name_it)
Posts: 8
Active Member
Topic starter
 

Hello Riny, 

Thank you so much! I just tested it with the pictures and it works, exactly as I wished it to. 

I have noticed that one of the pivot tables "Products" is removed, and therefore the Slicer is made from the Insert menu. But perhaps that should not matter for my original file. 
Additionally, one more collum has been added to the table "Source" and then =Subtotal(3,[@Category]), which gives a result of 1. I have to study this because I am not so advanced. 

Thanks once again 

I wish you a lovely day. 

Greetings, 

Tanique 

 
Posted : 01/02/2024 4:39 am
Riny van Eekelen
(@riny)
Posts: 1195
Member Moderator
 

Ah. forgot to mention that extra column. It's to enable the filter function to pick-up only visible rows fro the data table when you have made a selection with the slicer.

 
Posted : 01/02/2024 5:01 am
(@name_it)
Posts: 8
Active Member
Topic starter
 

Hello, 

it's alright. Actually, the approach is so much simplified than what I was trying to do over a week. Sometimes simple things work the best. 🙂 

Greetings, 

Tanique

 
Posted : 01/02/2024 6:05 am
(@debaser)
Posts: 837
Member Moderator
 

FWIW, if you don't want the additional column, you can amend the FILTER formula to do the same work:

=FILTER(Source[Name Product],BYROW(Source[Category],LAMBDA(r,SUBTOTAL(3,r)=1)))

 
Posted : 01/02/2024 6:52 am
(@name_it)
Posts: 8
Active Member
Topic starter
 

Hello Velouriaa, 

thanks for coming to the topic with another suggestion. I will try to test also your example in more detail.

Because I am using Office 365 Beta, today both functions are not accepted and it appears an error... ;( 

 
Posted : 02/02/2024 7:55 am
(@name_it)
Posts: 8
Active Member
Topic starter
 

Hello,

I have done many tests and tried to educate myself as much as possible. The problem is half solved.
If I don't select another item from the dropdown list ( by means not the first one ), I come to the same problem again. When choosing the Slicer, the dropdown list does change with ranged items, but the first item for a preview as a default is already not working.

Here is the picture. If the previous Slicer Radios has been selected, then moving to the next Slicer Gadgets, I have to click on the dropdown list to see the item. My whole idea was the possibility of automating exactly this very transition as a default to be the first item.

https://1drv.ms/i/s!AuUWSgf3FXzwhGyuaGCxLry5Fp4f?e=oQ3PS4

 
Posted : 07/02/2024 4:18 am
Share: