Refer to this article to link slicer to multiple pivot tables using Java. You will find all the necessary details to set the IDE, a list of steps, and a sample code to connect slicer to multiple pivot tables....calculate both the pivot tables to make them ready for the slicer connection...