Forum Discussion

Anthony Smith's avatar
Anthony Smith
Brass Contributor
Aug 03, 2018
Solved

GETPIVOTDATA Relative Reference and Cascading (Linking) Slicers to Filter Students and Test Scores

Hi All,   I could really use some help before I go jump off a bridge. Jk.   The issue I am currently having it related to using relative references in the GETPIVOTDATA function and cascading slic...
  • Philip West's avatar
    Aug 05, 2018

    I'm not really sure what you are trying to do.

     

    In your Example 2, you can use an IF to get rid of the 0s or #Refs

     

    =IF(OR(A5="Grand Total",A5=""),"",A5)

    =IF(OR(A5="Grand Total",A5=""),"",GETPIVOTDATA("Field1",$A$4,"Name",I4))

    These will tidy up your results, it just gives you an empty cell if its not returning a score.

     

    In example 1.. You can add another slicer, just add it and select class and you will have 2 slicers that work together to let you select a class and then a student. On the Name slicer right click and select Slicer Settings then tick the Hide items with no data to hide students not in whatever class wasn't selected. You could then use something like the above IFs to check if only 1 child has been selected, by seeing if A6 = Grand Total.. then show the name and score.

     

    I'm not 100% sure that I understood what you were trying to do, but hopefully that helps a bit, I've attached a workbook with the above examples working.

Resources