<?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 Re: Is it possible to configure a serial chart from multiple layers? in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/is-it-possible-to-configure-a-serial-chart-from/m-p/1132716#M5689</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for the great support. I tried the code you provided but seems I need to be more familiar with the Data Expression. Much appreciate your response.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jan 2022 04:53:46 GMT</pubDate>
    <dc:creator>Abdullah_AlFazari</dc:creator>
    <dc:date>2022-01-12T04:53:46Z</dc:date>
    <item>
      <title>Is it possible to configure a serial chart from multiple layers?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/is-it-possible-to-configure-a-serial-chart-from/m-p/1132388#M5671</link>
      <description>&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;So this post contains two things:&lt;/P&gt;&lt;P&gt;1. I have a serial chart in a dashboard, and I filtered the layer to just shows 2 subtypes, but when I configure the equation, it is not able to include more than one subtype, as per the below screenshots:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Abdullah_AlFazari_0-1641899282872.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/31181iDDA78683A399B2FF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Abdullah_AlFazari_0-1641899282872.png" alt="Abdullah_AlFazari_0-1641899282872.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Abdullah_AlFazari_0-1641899282872.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Abdullah_AlFazari_1-1641899301718.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/31182iB632C4DCAD86B559/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Abdullah_AlFazari_1-1641899301718.png" alt="Abdullah_AlFazari_1-1641899301718.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Abdullah_AlFazari_1-1641899301718.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2. Is it possible to configure a serial chart from multiple layers, I actually have two layers (one have a main line and the other have laterals (subtypes) of the line), and want to create a serial chart to see the lengths of all lines (main + laterals) in one serial chart. Is this doable?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/95280"&gt;@JayantaPoddar&lt;/a&gt;&lt;BR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&lt;BR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/294341"&gt;@JohannesLindner&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;@DavidNyenhuis1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 11:50:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/is-it-possible-to-configure-a-serial-chart-from/m-p/1132388#M5671</guid>
      <dc:creator>Abdullah_AlFazari</dc:creator>
      <dc:date>2022-01-11T11:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to configure a serial chart from multiple layers?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/is-it-possible-to-configure-a-serial-chart-from/m-p/1132395#M5672</link>
      <description>&lt;P&gt;Disclaimer: This is the first time I'm looking at Dashboard Serial Charts, it's possible I'm overlooking things here.&lt;/P&gt;&lt;P&gt;1.) If "Include" doesn't work, try chaining together multiple "Equals" with "Or". So instead of&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;WHERE Field IN (Value1, Value2)&lt;/LI-CODE&gt;&lt;P&gt;you get&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;Where Field = Value1 OR Field = Value2&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.) Doesn't seem doable. You probably have to create a new database view with all the lines, share it and build your chart from that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 12:00:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/is-it-possible-to-configure-a-serial-chart-from/m-p/1132395#M5672</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-01-11T12:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to configure a serial chart from multiple layers?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/is-it-possible-to-configure-a-serial-chart-from/m-p/1132400#M5674</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/294341"&gt;@JohannesLindner&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for the prompt response. Much appreciated.&lt;/P&gt;&lt;P&gt;So in this case will try to publish another layer that combines all (main + laterals).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 12:18:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/is-it-possible-to-configure-a-serial-chart-from/m-p/1132400#M5674</guid>
      <dc:creator>Abdullah_AlFazari</dc:creator>
      <dc:date>2022-01-11T12:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to configure a serial chart from multiple layers?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/is-it-possible-to-configure-a-serial-chart-from/m-p/1132432#M5677</link>
      <description>&lt;P&gt;You can definitely do this with a &lt;STRONG&gt;Data Expression&lt;/STRONG&gt;. They can look a bit more complex, but they're really just &lt;EM&gt;longer&lt;/EM&gt; than most Arcade expressions. Take a look at &lt;A href="https://github.com/Esri/arcade-expressions/blob/master/dashboard_data/CombineMultipleLayers(SerialChart).md" target="_self"&gt;the examples repository&lt;/A&gt; for a good starting point.&lt;/P&gt;&lt;P&gt;The text version:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Grab each layer by its itemID.&lt;/LI&gt;&lt;LI&gt;Create an empty "features" array&lt;/LI&gt;&lt;LI&gt;Go through each feature in both layers and push the features into said array&lt;/LI&gt;&lt;LI&gt;Turn array into a FeatureSet&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The code:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var portal = Portal('your url')

var lines1 = FeatureSetByPortalItem(
    portal,
    'itemid',
    0, // or whatever layer index applies
    ['fields', 'you', 'need'],
    false // unless you really need the geometry, leave it out for performance reasons
)

var lines2 = FeatureSetByPortalItem(
    portal,
    'itemid',
    0,
    ['fields', 'you', 'need'],
    false
)

var lyrs = [lines1, lines2]

var features = []
var feat;

for (var lyr in lyrs){
    for (var l in lyrs[lyr]){
        feat = {
            attributes: {
                some_attribute: l.some_attribute,
                another: l.another,
                ...
            }
        }
        
        Push(features, feat)
    }
}

var fs_dict = {
    fields: [
        {name: 'some_attribute', type: 'esriFieldTypeString'},
        {name: 'another', type: 'esriFieldTypeInteger'},
        ...
    ],
    geometryType: '',
    features: features
}

return FeatureSet(Text(fs_dict))&lt;/LI-CODE&gt;&lt;P&gt;Note that this expression assumes you've got the same fields in each layer. If all you want is the length, you probably only need "shape__length" anyway, but some other type or identifier may be useful.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 14:29:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/is-it-possible-to-configure-a-serial-chart-from/m-p/1132432#M5677</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-01-11T14:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to configure a serial chart from multiple layers?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/is-it-possible-to-configure-a-serial-chart-from/m-p/1132716#M5689</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for the great support. I tried the code you provided but seems I need to be more familiar with the Data Expression. Much appreciate your response.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 04:53:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/is-it-possible-to-configure-a-serial-chart-from/m-p/1132716#M5689</guid>
      <dc:creator>Abdullah_AlFazari</dc:creator>
      <dc:date>2022-01-12T04:53:46Z</dc:date>
    </item>
  </channel>
</rss>

