napoleon86 Posted August 5, 2019 Posted August 5, 2019 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
comment Posted August 5, 2019 Posted August 5, 2019 (edited) 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 August 5, 2019 by comment
bcooney Posted August 5, 2019 Posted August 5, 2019 xpost https://community.filemaker.com/en/s/question/0D50H000072ok3SSAQ/create-a-heatmap
napoleon86 Posted August 6, 2019 Author Posted August 6, 2019 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
comment Posted August 6, 2019 Posted August 6, 2019 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).
napoleon86 Posted August 8, 2019 Author Posted August 8, 2019 and how will these calculation and relationships look like?
comment Posted August 8, 2019 Posted August 8, 2019 (edited) 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 August 8, 2019 by comment
napoleon86 Posted August 8, 2019 Author Posted August 8, 2019 ☺️☺️ 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.
comment Posted August 8, 2019 Posted August 8, 2019 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
napoleon86 Posted August 8, 2019 Author Posted August 8, 2019 Yes, this looks like it what i'm searching for. Many thanks!!
napoleon86 Posted August 8, 2019 Author Posted August 8, 2019 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?
comment Posted August 8, 2019 Posted August 8, 2019 Yes, this is easy to do with conditional formatting; https://fmhelp.filemaker.com/help/18/fmp/en/index.html#page/FMP_Help%2Fconditional-formatting.html Note that if you want to compare an individual value to the average, you must decide what to include in the average. If you use the existing summary field, it will be the average of the current found set.
Recommended Posts
This topic is 1945 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now