Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8719421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:47:39+00:00 2026-06-13T06:47:39+00:00

In CRM 2011 I have several records that contain a two-state (nullable boolean) field.

  • 0

In CRM 2011 I have several records that contain a two-state (nullable boolean) field. I would like to plot a bar chart that counts the number of true and false values over all the records and plot them in the same chart (a bar for ‘true’ records and a bar for ‘false’ records).

Here is the modified XML I (originally generated using CRM) and for the life of me I can’t figure out how to plot a chart with the 2 values, I have multiple records per month so the horizontal axis is the records cretedOn date (month).

Can anyone exaplin how I would modify the XML to achieve this? Or point me to a resource that explains what to do?

    <visualization>
  <visualizationid>{CCA96081-E319-E211-B2CA-0800273EE9D1}</visualizationid>
  <name>Compliance Stages 1 &amp; 2, Chart 1</name>
  <primaryentitytypecode>intellic_suppliersalesprocess</primaryentitytypecode>
  <datadescription>
    <datadefinition>
      <fetchcollection>
        <fetch mapping="logical" aggregate="true">
          <entity name="intellic_suppliersalesprocess">
            <attribute alias="aggregate_column" name="intellic_csvfileimported" aggregate="count" />
        <filter>
           <condition attribute="intellic_csvfileimported" operator="eq" value="true" />
        </filter>
        <attribute alias="aggregate_column1" name="intellic_csvfileimported" aggregate="count" />
        <filter>
           <condition attribute="intellic_csvfileimported" operator="eq" value="false" />
        </filter>
            <attribute groupby="true" alias="groupby_column" dategrouping="month" name="createdon" />
          </entity>
        </fetch>
      </fetchcollection>
      <categorycollection>
        <category>
          <measurecollection>
            <measure alias="aggregate_column" />
          </measurecollection>
      <measurecollection>
            <measure alias="aggregate_column1" />
          </measurecollection>
        </category>
      </categorycollection>
    </datadefinition>
  </datadescription>
  <presentationdescription>
    <Chart>
      <Series>
    <Series IsValueShownAsLabel="True" Color="110, 20, 78" BackGradientStyle="TopBottom" BackSecondaryColor="141, 44, 45" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="PointWidth=0.75, MaxPixelPointWidth=40"></Series>
        <Series IsValueShownAsLabel="True" Color="55, 118, 193" BackGradientStyle="TopBottom" BackSecondaryColor="41, 88, 145" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="PointWidth=0.75, MaxPixelPointWidth=40"></Series>
      </Series>
      <ChartAreas>
        <ChartArea BorderColor="White" BorderDashStyle="Solid">
          <AxisY LabelAutoFitMinFontSize="8" TitleForeColor="59, 59, 59" TitleFont="{0}, 10.5px" LineColor="165, 172, 181" IntervalAutoMode="VariableCount">
            <MajorGrid LineColor="239, 242, 246" />
            <MajorTickMark LineColor="165, 172, 181" />
            <LabelStyle Font="{0}, 10.5px" ForeColor="59, 59, 59" />
          </AxisY>
          <AxisX LabelAutoFitMinFontSize="8" TitleForeColor="59, 59, 59" TitleFont="{0}, 10.5px" LineColor="165, 172, 181" IntervalAutoMode="VariableCount">
            <MajorGrid LineColor="Transparent" />
            <LabelStyle Font="{0}, 10.5px" ForeColor="59, 59, 59" />
          </AxisX>
        </ChartArea>
      </ChartAreas>
      <Titles>
        <Title Alignment="TopLeft" DockingOffset="-3" Font="{0}, 13px" ForeColor="59, 59, 59"></Title>
      </Titles>
    </Chart>
  </presentationdescription>
  <isdefault>false</isdefault>
</visualization> 

Any adivce would be much apprecited.

Jack

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T06:47:41+00:00Added an answer on June 13, 2026 at 6:47 am

    You need to have two series, and each needs to do an aggregate on the count of records, but for a filtered set of records according to your bit field.
    So while a typical two series chart might plot number of new Accounts and number of new Leads (say) in each month, here you want to plot the same entity twice, in each case do a count, but filter the records being counted.
    As a useful example to compare against, there is a built-in chart which shows Opportunities as deals won vs deals lost. In this example it does a sum of Actual Revenue for all Opportunities won, and a sum of estimated revenue for Opps lost. You can find this chart and export it, I have pasted below for ease of reference:

    <visualization>
          <visualizationid>{C1CB81B1-575F-DF11-AE90-00155D2E3002}</visualizationid>
          <name>Deals Won vs. Deals Lost By Owner</name>
          <description>Shows the amount of revenue for won deals versus lost deals.</description>
          <primaryentitytypecode>opportunity</primaryentitytypecode>
          <datadescription>
            <datadefinition>
              <fetchcollection>
                <fetch mapping="logical" aggregate="true">
                  <entity name="opportunity">
                    <link-entity name="opportunity" from="opportunityid" to="opportunityid" link-type="outer">
                      <attribute alias="sum_lost" name="estimatedvalue" aggregate="sum"></attribute>
                      <filter>
                        <condition attribute="statecode" operator="eq" value="2" />
                      </filter>
                    </link-entity>
                    <link-entity name="opportunity" from="opportunityid" to="opportunityid" link-type="outer">
                      <attribute alias="sum_won" name="actualvalue" aggregate="sum"></attribute>
                      <filter>
                        <condition attribute="statecode" operator="eq" value="1" />
                      </filter>
                    </link-entity>
                    <attribute groupby="true" alias="groupby_column" name="ownerid"></attribute>
                  </entity>
                </fetch>
              </fetchcollection>
              <categorycollection>
                <category>
                  <measurecollection>
                    <measure alias="sum_won" />
                  </measurecollection>
                  <measurecollection>
                    <measure alias="sum_lost" />
                  </measurecollection>
                </category>
              </categorycollection>
            </datadefinition>
          </datadescription>
          <presentationdescription>
            <Chart Palette="None" PaletteCustomColors="97,142,206; 168,203,104; 209,98,96; 142,116,178; 93,186,215; 255,155,83; 148,172,215; 217,148,147; 189,213,151; 173,158,196; 145,201,221; 255,180,138">
              <Series>
                <Series Name="o:opportunity_statecode,1" Color="149, 189, 66" IsValueShownAsLabel="False" BackGradientStyle="TopBottom" BackSecondaryColor="112, 142, 50" Font="{0}, 9.5px" LabelForeColor="59, 59, 59">
                  <SmartLabelStyle Enabled="True" />
                </Series>
                <Series Name="o:opportunity_statecode,2" Color="255,124,31" IsValueShownAsLabel="False" BackGradientStyle="TopBottom" BackSecondaryColor="235,98,0" Font="{0}, 9.5px" LabelForeColor="59, 59, 59">
                  <SmartLabelStyle Enabled="True" />
                </Series>
              </Series>
              <ChartAreas>
                <ChartArea BorderColor="White" BorderDashStyle="Solid">
                  <AxisY LabelAutoFitMinFontSize="8" TitleForeColor="59, 59, 59" TitleFont="{0}, 10.5px" LineColor="165, 172, 181">
                    <MajorGrid LineColor="239, 242, 246" />
                    <MajorTickMark LineColor="165, 172, 181" />
                    <LabelStyle Font="{0}, 10.5px" ForeColor="59, 59, 59" />
                  </AxisY>
                  <AxisX LabelAutoFitMinFontSize="8" TitleForeColor="59, 59, 59" TitleFont="{0}, 10.5px" LineColor="165, 172, 181">
                    <MajorGrid Enabled="False" />
                    <MajorTickMark Enabled="False" />
                    <LabelStyle Font="{0}, 10.5px" ForeColor="59, 59, 59" />
                  </AxisX>
                </ChartArea>
              </ChartAreas>
              <Titles>
                <Title Alignment="TopLeft" DockingOffset="-3" Font="{0}, 13px" ForeColor="0, 0, 0"></Title>
              </Titles>
              <Legends>
                <Legend Alignment="Center" LegendStyle="Table" Docking="Bottom" Font="{0}, 11px" ForeColor="59, 59, 59"></Legend>
              </Legends>
            </Chart>
          </presentationdescription>
          <isdefault>false</isdefault>
        </visualization>
    

    Notice the “filter” tags in each link-entity? Also see that there are two “measure collections” which define the series, and two entries for the presentation of these eg the colour.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a file that I want to import into Microsoft Dynamics CRM 2011
Is it possible/supported to have a CRM 2011 host work with two different host
CRM 2011 online. I have a requirement to color code entries that appear in
I have a Dynamics CRM 2011 on-premise installation and I want to retrieve records
I have a custom ribbon button on one of my CRM 2011 entities that
I have created a dialog that creates a quote in CRM 2011 Online and
I have two entities in CRM 2011 - EmailMatchingRule and EmailMatchingRuleField, in a standard
I am trying to GROUP the CRM records that have the same Owner name
I have a method that queries CRM 2011 and then binds the results to
Background I have a service that is connecting to Microsoft CRM 2011, and updating

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.