web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

how to show graph on dashboard that shows the count of occurrences?

(0) ShareShare
ReportReport
Posted on by 70

I'm aware how to use the "simple" D365 built-in graphing function to add a graph to the dashboard...but I find it very limiting in scope.   I'd like the dashboard to show the number of occurrences for opportunity losses and displays a graph like this:

graph-320x240.jpg

(The raw data is shown above the graph.)  The "COUNTIF" function is required to make this type of graph.   

So my question is: how can a graph like this be added to a dashboard?

I have the same question (0)
  • Suggested answer
    ba365guy Profile Picture
    2,950 on at

    Hi smw_brad

    I assume the list above is the reason you choose before closing opportunity

    You can try creating a crating a chart as follows: (in opportunity entity)

    pastedimage1577875003053v1.png

    In the example above, I chose the view as "Closed Opportunities". You can choose a view of "Lost Opportunities" for your specific requirement.

  • LuHao Profile Picture
    40,892 on at

    Hi smw,

    To filter the data of the chart, there are two ways - 1) filter from the view, 2) filter form the chart. Both of them essentially adding filtering code to their respective fetch xml.

    1. filter from the view.

    When editing the dashboard, select the "Lost Opportunities" view before selecting the chart.

    pastedimage1577932624034v2.png

    You don't need to create additional charts.

    In this case, all the data in the chart are lost opportunities, so the number of opportunities in the chart is also the number of lost opportunities.

    2. filter form the chart.

    We could modify the xml of the chart to add filtering.

    First open the chart in the dashboard and export it.

    pastedimage1577933094739v3.png

    Open the xml file, find </entity>, add 

    <filter type="and">
    <condition value="2" attribute="statecode" operator="eq" />
    </filter>

    before it.

    pastedimage1577933359998v5.png

    Import it.

    pastedimage1577933451342v6.png

    Switch the chart in the dashboard to the new imported chart.

    This way, we can filter out lose opportunities without changing the original view range.

  • Suggested answer
    smw_brad Profile Picture
    70 on at

    Follow up.   Our friends at MS Support solved the issue: the built-in chart feature works fine....and it's a simple and elegant solution.

    Here are the basic steps: Go to customize the system; in the left hand pane click ENTITIES, OPPORTUNITIES, CHARTS; create a new chart using the appropriate drop down selections.   Use the appropriate drop down selection under "Legend Entries (Series)" - i.e., the vertical axis - in my case it was called "Status Reason"; and then make sure Count All is showing in the adjacent box.   For the horizontal axis pick the same drop down item (for me that was "Status Reason".   If everything was done correctly, a preview of the graph will show.   Save it; publish it; and then use the normal steps for entering the graph on the dashboard.

    I appreciate those who responded and special thanks to CJ at MS Support for the excellent assistance.

  • ba365guy Profile Picture
    2,950 on at

    Hi.. Glad it worked for you.

    This is exactly i posted in my response too..

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 61

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 52 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans