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.

Count occurence specific values in a portal field

Featured Replies

  • Newbies

I have a portal on "student" layout that lists details of students' applications to schools (drawing from the "applications" table). Each row is one application. One of the fields for each row (application) tells me whether that school accepts materials by email with the value "Y". I want a field that gives the total number of Y's in the portal. I.e., how many of the schools a student is applying to that will take email submissions. Is this possible?

The simple way:

Change that field (let's call it AcceptsEmail) to type Number, with 1 signifying True and 0 or empty meaning False.

Then add a calculation field in Students = Sum ( Applications::AcceptsEmail ).

The other way:

Add a calculation field in Students =

ValueCount ( FilterValues ( List ( Applications::AcceptsEmail ) ; "Y" ) )

  • Author
  • Newbies

Bless you! Works like a charm.

I attempted using this in my database and I am not getting any values.

Okay I am tackling this from a different angle...

so I have decided to use the following calculation:

ValueCount (FilterValues (bahus::weekly count; "1"))

in bahus I have added a calc field called "weekly count" that uses the WeekOfYearFiscal (Date;1) where each week starts on Sunday. I have the result being TEXT so that the Value count calculation will recognize it when filtering and counting values.

in bahus portal I have changed my "Week 1" field to use the ValueCount calculation above. My problem now is that nothing is showing in the Week 1 field.

I have tried keeping the value as a number, but that does not work either.

To clarify my need. I have a database which shows advisors and when they have used a help desk service. There are several hundred advisors and there are over 25000 incidences where these advisors used help desk throughout the year.

I need to have a visible overview of weekly numbers. This requires me to have 52/53 fields representing each week.

Any ideas on why it is not working?

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.