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.

How to show in a chart Count(Nationality) only if Count(Nationality) > 1

Featured Replies

I have a database with a list of CUSTOMERS. I created a bargraph of the nationality of customers using a summaryfield CUSTOMERS::sumNationalityCount = Count(Nationality). There are nationalities which occur only once in the database.
 
graph.png
 
I wanted the bargraph to display nationalities only if they occured more than once( Count only if there is more than one customer for a nationality).
 
I thought of creating a self relationship between CUSTOMERS table, hoping to create a relationship between a CUSTOMERS::gMinNationalityCount to CUSTOMERS::sumNationalityCount. But then CUSTOMERS::sumNationalityCount is greyed out in the Table of Occurrence for CUSTOMERS.
 
[Edit : I switched the calculations for the X and Y axis in the first post. Sorry! ]
When I tried the calculation for the data for X-axis -- If(CUSTOMERS::sumNationalityCount > 1 ; CUSTOMERS::Nationality;""), it removed all the Nationality labels from the graph if they occurred less than once. Still the bars persisted on the graph. So tried an AddRemoveListItems( theList; theValue) custom function from briandunning.com. That didn't work either.
 
When I tried the custom function  AddRemoveListItems( theList; theValue) custom function from briandunning.com, for the data for X-axis -- AddRemoveListItems ( If(Layout_Contacts::sumNationalityCount>1;Layout_Contacts::Nationality;""); ""), it removed all the Nationality labels from the graph if they occurred less than once. And the calculation, If(Layout_Contacts::sumNationalityCount>1;Layout_Contacts::sumNationalityCount;"") for Y axis removed the counts <1.
 
All that remains is to figure out a way to sort the nationality value list based on sumNationalityCount. Any suggestions how to make this work?
  • Author

Guess the sort button in the chart screen when clicked can "re-sort results based on a summary field".

And Thanks to Matt Petrowsky for his video tutorial on "user based value lists" using BOM (Byte Order Mark). 

Better yet, the article on using BOM for custom sorted value lists from soliant consulting

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.