AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • Rolodex
    • Podcast
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

Forums
AUG Forums
Acumatica Generic I...
How to count multi-...
 
Notifications
Clear all

Questions How to count multi-select attribute values individually?

 
Acumatica Generic Inquiries & Pivot Tables
Last Post by lauraj46 4 years ago
4 Posts
3 Users
2 Reactions
1,865 Views
RSS
John Beiler
Posts: 3
 John Beiler
Topic starter
January 11, 2022 12:56 pm
(@jbeiler)
Active Member
Joined: 6 years ago

A pivot table counts the values as stored in the database, I want to count them individually.

In this example, the counts should be as follows:

Value 1 = 3

Value 2 = 2

Value 3 = 3

image

3 Replies
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
February 18, 2022 10:29 am
(@timrodman)
Famed Member
Joined: 10 years ago

Is this an Attribute with a Control Type of Multi Select Combo? If so, I've run into this same problem. I think this could be handled in Excel, using Power Query to transform the data, but I can't think of a way to do it in an Acumatica Pivot Table off the top of my head without feeding the Generic Inquiry with a SQL View.


Reply
John Beiler
 John Beiler
(@jbeiler)
Joined: 6 years ago

Active Member
Posts: 3
February 18, 2022 3:26 pm
Reply toTim RodmanTim Rodman

@timrodman Yes, it's an Attribute with a Control Type of Multi Select Combo.


Reply
Tim Rodman reacted
lauraj46
Posts: 10
 lauraj46
February 18, 2022 5:58 pm
(@lauraj46)
Active Member
Joined: 4 years ago

Hi @jbeiler,

I posted a response to your question on community.acumatica.com:

https://community.acumatica.com/reports-and-generic-inquires-115/how-to-count-multi-select-attribute-values-individually-7859

I think you could make this work by doing a cross join between CSAnswers and CSAttributeDetail.  

 

Replace ‘TEST’ with the id of your attribute. 

Because of the cross join, each of the possible choices (from CSAttributeDetail) will be compared with each of the answers (from CSAnswers).  The InStr function returns the position where the text is found, or 0 if not found.

 

 The hidden parameter makes it easier to build the formula into the Condition tab.

 

This will filter to return just the records that match.

This is what the results of the Generic Inquiry look like:

Then you can build the pivot something like this:

 

End result:

 

Hope this helps!

Laura


Reply
Tim Rodman reacted
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,526 Topics
  • 10.9 K Posts
  • 20 Online
  • 2,389 Members
Our newest member: Dan Hunting
Latest Post: Generic Inquiry Screenid changes to ScreenId=00000000
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

 No online members at the moment

Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © 2025 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×