<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Show minimum value in a range of data in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/show-minimum-value-in-a-range-of-data/m-p/1182241#M6413</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I am trying to summarise some data from multiple borehole surveys. Each borehole is visited up to 6 times, and each time a new record is submitted via Survey123. The depth to water is recorded on each visit. I would like a simple table, or indicator that shows this in a dashboard, so it looks something like this:&lt;/P&gt;&lt;TABLE border="0" width="432pt" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="575px" height="20"&gt;Depth to Water&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="80.071px" height="20"&gt;Borehole&lt;/TD&gt;&lt;TD width="84.8722px"&gt;Visit1 (R1)&lt;/TD&gt;&lt;TD width="84.8722px"&gt;Visit2 (R2)&lt;/TD&gt;&lt;TD width="84.8722px"&gt;Visit3 (R3)&lt;/TD&gt;&lt;TD width="51.6761px"&gt;Visit4 (R4)&lt;/TD&gt;&lt;TD width="51.6761px"&gt;Visit5 (R5)&lt;/TD&gt;&lt;TD width="51.6761px"&gt;Visit6 (R6)&lt;/TD&gt;&lt;TD width="41.5483px"&gt;Min&lt;/TD&gt;&lt;TD width="43.7358px"&gt;Max&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="80.071px" height="20"&gt;BH101&lt;/TD&gt;&lt;TD width="84.8722px"&gt;2.6&lt;/TD&gt;&lt;TD width="84.8722px"&gt;2.4&lt;/TD&gt;&lt;TD width="84.8722px"&gt;3.2&lt;/TD&gt;&lt;TD width="51.6761px"&gt;2.5&lt;/TD&gt;&lt;TD width="51.6761px"&gt;3.2&lt;/TD&gt;&lt;TD width="51.6761px"&gt;2.9&lt;/TD&gt;&lt;TD width="41.5483px"&gt;2.4&lt;/TD&gt;&lt;TD width="43.7358px"&gt;3.2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="80.071px" height="20"&gt;BH102&lt;/TD&gt;&lt;TD width="84.8722px"&gt;1.8&lt;/TD&gt;&lt;TD width="84.8722px"&gt;1.6&lt;/TD&gt;&lt;TD width="84.8722px"&gt;1.6&lt;/TD&gt;&lt;TD width="51.6761px"&gt;1.3&lt;/TD&gt;&lt;TD width="51.6761px"&gt;1.9&lt;/TD&gt;&lt;TD width="51.6761px"&gt;1.5&lt;/TD&gt;&lt;TD width="41.5483px"&gt;1.3&lt;/TD&gt;&lt;TD width="43.7358px"&gt;1.8&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the moment I can only get the Dashboard to show each visit as a new line in either the table or list. Is it possible to show this data summarised, so that just 1 line exists for each borehole? And then show the different depths recorded, and use an expression to highlight/pull out the min/max?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BenBlowers2_0-1655114120650.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/43315i7BABE103AB753778/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BenBlowers2_0-1655114120650.png" alt="BenBlowers2_0-1655114120650.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jun 2022 09:56:48 GMT</pubDate>
    <dc:creator>BenBlowers2</dc:creator>
    <dc:date>2022-06-13T09:56:48Z</dc:date>
    <item>
      <title>Show minimum value in a range of data</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/show-minimum-value-in-a-range-of-data/m-p/1182241#M6413</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I am trying to summarise some data from multiple borehole surveys. Each borehole is visited up to 6 times, and each time a new record is submitted via Survey123. The depth to water is recorded on each visit. I would like a simple table, or indicator that shows this in a dashboard, so it looks something like this:&lt;/P&gt;&lt;TABLE border="0" width="432pt" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="575px" height="20"&gt;Depth to Water&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="80.071px" height="20"&gt;Borehole&lt;/TD&gt;&lt;TD width="84.8722px"&gt;Visit1 (R1)&lt;/TD&gt;&lt;TD width="84.8722px"&gt;Visit2 (R2)&lt;/TD&gt;&lt;TD width="84.8722px"&gt;Visit3 (R3)&lt;/TD&gt;&lt;TD width="51.6761px"&gt;Visit4 (R4)&lt;/TD&gt;&lt;TD width="51.6761px"&gt;Visit5 (R5)&lt;/TD&gt;&lt;TD width="51.6761px"&gt;Visit6 (R6)&lt;/TD&gt;&lt;TD width="41.5483px"&gt;Min&lt;/TD&gt;&lt;TD width="43.7358px"&gt;Max&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="80.071px" height="20"&gt;BH101&lt;/TD&gt;&lt;TD width="84.8722px"&gt;2.6&lt;/TD&gt;&lt;TD width="84.8722px"&gt;2.4&lt;/TD&gt;&lt;TD width="84.8722px"&gt;3.2&lt;/TD&gt;&lt;TD width="51.6761px"&gt;2.5&lt;/TD&gt;&lt;TD width="51.6761px"&gt;3.2&lt;/TD&gt;&lt;TD width="51.6761px"&gt;2.9&lt;/TD&gt;&lt;TD width="41.5483px"&gt;2.4&lt;/TD&gt;&lt;TD width="43.7358px"&gt;3.2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="80.071px" height="20"&gt;BH102&lt;/TD&gt;&lt;TD width="84.8722px"&gt;1.8&lt;/TD&gt;&lt;TD width="84.8722px"&gt;1.6&lt;/TD&gt;&lt;TD width="84.8722px"&gt;1.6&lt;/TD&gt;&lt;TD width="51.6761px"&gt;1.3&lt;/TD&gt;&lt;TD width="51.6761px"&gt;1.9&lt;/TD&gt;&lt;TD width="51.6761px"&gt;1.5&lt;/TD&gt;&lt;TD width="41.5483px"&gt;1.3&lt;/TD&gt;&lt;TD width="43.7358px"&gt;1.8&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the moment I can only get the Dashboard to show each visit as a new line in either the table or list. Is it possible to show this data summarised, so that just 1 line exists for each borehole? And then show the different depths recorded, and use an expression to highlight/pull out the min/max?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BenBlowers2_0-1655114120650.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/43315i7BABE103AB753778/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BenBlowers2_0-1655114120650.png" alt="BenBlowers2_0-1655114120650.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 09:56:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/show-minimum-value-in-a-range-of-data/m-p/1182241#M6413</guid>
      <dc:creator>BenBlowers2</dc:creator>
      <dc:date>2022-06-13T09:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Show minimum value in a range of data</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/show-minimum-value-in-a-range-of-data/m-p/1182246#M6414</link>
      <description>&lt;P&gt;You can use the &lt;A href="https://developers.arcgis.com/arcade/function-reference/data_functions/#groupby" target="_blank" rel="noopener"&gt;GroupBy&lt;/A&gt; function for that:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var test_data = {
    geometryType: "",
    fields: [
        {name: "Borehole", type: "esriFieldTypeString"},
        {name: "Visit", type: "esriFieldTypeString"},
        {name: "WaterLevel", type: "esriFieldTypeDouble"},
        ],
    features: [
        {attributes: {Borehole: "BH101", Visit: "R1", WaterLevel: 2.6}},
        {attributes: {Borehole: "BH101", Visit: "R2", WaterLevel: 2.4}},
        {attributes: {Borehole: "BH101", Visit: "R3", WaterLevel: 3.2}},
        {attributes: {Borehole: "BH101", Visit: "R4", WaterLevel: 2.5}},
        {attributes: {Borehole: "BH101", Visit: "R5", WaterLevel: 3.2}},
        {attributes: {Borehole: "BH101", Visit: "R6", WaterLevel: 2.9}},
        {attributes: {Borehole: "BH102", Visit: "R1", WaterLevel: 1.8}},
        {attributes: {Borehole: "BH102", Visit: "R2", WaterLevel: 1.6}},
        {attributes: {Borehole: "BH102", Visit: "R3", WaterLevel: 1.6}},
        {attributes: {Borehole: "BH102", Visit: "R4", WaterLevel: 1.3}},
        {attributes: {Borehole: "BH102", Visit: "R5", WaterLevel: 1.9}},
        {attributes: {Borehole: "BH102", Visit: "R6", WaterLevel: 1.5}},
        ]
}
var boreholes = FeatureSet(Text(test_data))
//return boreholes

var range_statistics = [
    {
        name: "Min",
        expression: "WaterLevel",
        statistic: "MIN"
    },
    {
        name: "Max",
        expression: "WaterLevel",
        statistic: "MAX"
    }
    ]
var boreholes_with_range = GroupBy(boreholes, "Borehole", range_statistics)
return boreholes_with_range&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_0-1655115794347.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/43316i77AA40577BCE6359/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_0-1655115794347.png" alt="JohannesLindner_0-1655115794347.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_1-1655115854037.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/43317i362867298A5D882D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_1-1655115854037.png" alt="JohannesLindner_1-1655115854037.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 10:24:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/show-minimum-value-in-a-range-of-data/m-p/1182246#M6414</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-06-13T10:24:55Z</dc:date>
    </item>
  </channel>
</rss>

