Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a table which contains the fields "Produt No", "Product Name" , "Sales Date", "Warranty Period". I have created a pivot table with all the fields. A file is uploaded for details. These are my data:
Sales:
LOAD * INLINE [
Produt No, Product Name, Sales Date, Warranty Period
1, Apple Phone, 2/1/2018, 1 yr
2, Apple iPad, 5/12/2017, 1 yr
3, Apple Laptop, 6/7/2018, 2 yr
4, HP Laptop, 6/10/2016, 1 yr
5, Samsung Phone, 7/2/2017, 1 yr
6, Samsung TV, 5/4/2018, 2 yr
7, Samsung Laptop, 3/1/2017, 3 yr
8, Lenovo Lap, 1/2/2016, 1 yr
9, Lenovo Phone, 5/6/2018, 3 yr
10, Nokia, 5/5/2017, 2 yr
];
Data are shown in Pivot table looks like below. I have a filter "Product No", my question is if a user wants to select a value from Product No, three values(Previous value, Selected Value, Next Value) will be shown in the pivot table say if the user select value "4" from Product No, data for Product No 3,4 and 5 will be shown in the pivot table like below:
Produt No 3 4 5
Product Name Apple Laptop HP Laptop Samsung Phone
Sales Date 6/7/2018 6/10/2016 7/2/2017
Warranty Period 2 yr 1 yr 1 yr
Is there any way to do it? Need help urgently. Thanks a lot in advance.
Change your expression for Blank to this
Concat({<[Produt No] = {"$(=Max([Produt No]))", "$(=Max([Produt No])-1)", "$(=Max([Produt No])+1)"}>}'')
Try that in that case
Concat({1<[Produt No] = {"$(=Max([Produt No]))", "$(=Max([Produt No])-1)", "$(=Max([Produt No])+1)"}>}'')
Change your expression for Blank to this
Concat({<[Produt No] = {"$(=Max([Produt No]))", "$(=Max([Produt No])-1)", "$(=Max([Produt No])+1)"}>}'')
It's great. Really appreciate your effort. But whenever I try to select any value from different list box. The values in pivot table is getting restricted i.e instead of showing three values, it's showing the selected values. Isn't there anyway to select the value from multiple list boxes and still three values will be shown in the pivot table? Check the attached file for your reference. Thanks
Try that in that case
Concat({1<[Produt No] = {"$(=Max([Produt No]))", "$(=Max([Produt No])-1)", "$(=Max([Produt No])+1)"}>}'')
But in your example.... the Product Name always change with Produt No and it sort of makes sense (because each Product Name is associated with a different Produt No).... then will you always see everything highlighted?