Save pivot attributes in saved queries