Forum Discussion
Smart Slicer
Hi,
Is it possible to make a slicer smarter?
I have a database with clients and with invoice amounts.
I have a slicer with years, but now I want that the slicer where I can select a certain client takes in notice that clients without any data in that year are not shown.
We have alot of one time clients, because of this the slicer is getting extremely big.
I have added the Text Filter app as visualisation but I have had this 'problem' with more reports.
Kind Regads,
Tim Wijnen
Hi Wiene24,
The custom visual "HierarchySlicer" is the solution. It has a Value filed where we can add a measure to filter the values. Please refer to the demo below. Some items are filtered out by the measure.
SlicerOnly = VAR temp = SUM ( Sales[SalesQuantity] ) RETURN IF ( temp >= 100000, temp, BLANK () )
Best Regards,
Dale
6 Replies
- Greg_DecklerCommunity Champion
There may be something in the marketplace in terms of a smarter slicer but I'm not aware of a way to do that because you can't use filters on a slicer and you can't use measures as filters in page or report filters.
- v-jiascu-msftMicrosoft Employee
- Wiene24Helper II
Hi Dale,
The problem is that there is data in the sales table from almost all clients, but I want that if I select 2017 that only the clients that had sales in 2017 will show. If I then change it to 2018 I only want to see the clients that had sales in 2018.
Because we have alot of one time sales they will now always stay in my slicer.
- v-jiascu-msftMicrosoft Employee
Hi Wiene24,
The custom visual "HierarchySlicer" is the solution. It has a Value filed where we can add a measure to filter the values. Please refer to the demo below. Some items are filtered out by the measure.
SlicerOnly = VAR temp = SUM ( Sales[SalesQuantity] ) RETURN IF ( temp >= 100000, temp, BLANK () )
Best Regards,
Dale