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.

Featured Replies

I would like to create a heat map with data from a related table.

In table 1 different records with a field with a value. A field with hour of the day. A field with day of the week.

In another table I would like (in 1 global record) an overview with times per day with a field containing the average value of that hour of the day of the week.

What is the best way to do this? Thanks

I am not sure why you would need the other table. You can simply produce a summary report of your data, sorted by day-of-week and by hour, and use a summary field to display the average value of each sorted group.

 

Edited by comment

  • Author

I've uploaded a file. In Table "Content" i have the data. In Table "Heatmap" I want the average of the field "Value" of the related records. 

 

Thanks!

Naamloos.fmp12

As I said, I don't think this is a good approach. To populate just 4 hours x 5 days of week, you would need 20 calculation fields and 20 relationships (or 20 filtered portals).

  • Author

and how will these calculation and relationships look like?

Are you seriously contemplating this? I only mentioned it to show how impractical it would be. There are much better ways - but you need to explain in more detail what exactly are you trying to accomplish here (and for what purpose).

Edited by comment

  • Author

☺️☺️

I have an existing database (with around 10.000 records and growing) with a timestamp and a value. From this database i want to make a dynamic heatmap with the average value per our of the day.

I am afraid that doesn't tell me anything new. I don't know what you mean by "a dynamic heatmap". As I said in my first response, average values are easily produced using a summary report - see the attached demo.

DailyAverages.fmp12

  • Author

Yes, this looks like it what i'm searching for. Many thanks!!

  • Author

another question to make it even more difficult 😂

Is there a possibility to change the background colour of a field when the average value is 0-50: red, 50-75: orange and 75+ green?

or maybe above total average green and below total average red?

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.