​The steps below will help us to build a query that will output  the primary member's first and last name in addition to the attribute value associated with their membership.
  1. From Analysis, Select Information Library
  2. Select Add an Ad-Hoc Query and choose the source view of Membership
  3. On the left expand Attributes > Select the Membership Attribute > In the middle select Value and move to Include records where and set equal to the value of your attribute
  4. On the left select members > In the middle select primary member > Move to Include records where and set equal to yes
  5. On the left expand Members > Select constituents > In the middle select Last Name > Move to Results fields to display
  6. In the middle select First Name > Move to Results fields to display
  7. On the left Expand Attributes > Select the Membership Attribute you are filtering on > In the middle select value > Move to Results fields to display
  8. Preview Results
  9. Save and Close