Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Charting Certain Delimited Values

Featured Replies

I have 2 fields that are used to create a simple Bar Chart layout: Customers and Sales.  Each field is a list of values I have generated from summary reports using Mikhail Edoshin's Fast Summary technique.

Each of the 2 fields contains many values (maybe up to 30 or 40 entries), sorted by Sales.  I would like to chart the top 10 Customers (by Sales).

How would I use a script to modify the data in each field to keep only the first (or last) 10 values?

Thank you.

You could define your chart to use only:

LeftValues ( Customers ; 10 )

for Category Labels and:

LeftValues ( Sales ; 10 )

for Slice Data.

Note:
If you're running Fast Summaries only to produce this chart, and you know in advance that you only want the top 10, it might be 
smarter to modify the script to exit after the 10th group.

 

  • Author

Thanks for the reply.

I went with the option to modify the script to exit after the 10th group.  To do this I sort by descending order, according to Sales.

This works well but will gives me the largest Sales values first.  When I chart this as a Bar chart the largest values are on the bottom of the chart.  I would prefer the largest to be at the top.

I'm not sure how to do this using the Fast Summaries method because the number of Customers will vary.  I'm not sure how to start collecting values from the last 10 groups if I were to sort in ascending order.

Should I try and work out how to collect the values from the last 10 groups, or should I attempt to reorder the list in the delimited field?  Is there another method I should use?

Thanks again.

 

If your records are sorted by Sales, descending, and you are starting from the first (i.e. the largest) group, then you are collecting the values in the order you want them. If the result is in reverse order, it is probably due to your script placing each value at the head of the collected list, instead of at the tail.

 

  • Author

Thanks very much.  That was so simple!

The answer is sometimes right in front of me - I appreciate you pointing it out.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.