When running a grouped report in Salesforce, if there is no data for a specific grouping, the report displays nothing. This can be frustrating, especially when grouping by dates and trying to analyze a trend. Graphs only display dates with a value, making it difficult to identify periods with no data. As a result, we may miss out on identifying periods when business was particularly bad.
There is currently an idea related to this issue, which can be found at the following link:
This example is intended for generating a report based on the Opportunity object, with a focus on grouping the data by owners and Close date, however, it is important to note that the same approach can be adapted for any other object as well.
Create a new Formula field on the Opportunity object
Create a Scheduled-Triggered Flow on Opportunities
Create a Record-Triggered Flow
Create a second Record-Triggered Flow
_____________________________________________________________________________________
Create a new Formula field on the Opportunity object
IF(Name="DUMMY OPP",0,1)
Create a Scheduled-Triggered Flow on Opportunities
Your Scheduled-Triggered Flow should now look like this:
Note: It's also possible to run another Scheduled-Triggered Flow to create past and/or future opportunities, but this approach can be more complex and may result in a large number of records to create. Therefore, it is important to be aware of the flow and storage limits to avoid any issues
Create a Record-Triggered Flow
AND({!$Record.Name}<>"DUMMY OPP",OR(ISNEW(),ISCHANGED({!$Record.CloseDate})))
Step 4. Set the When to Run the Flow for Updated Records section to Every time a record is updated and meets the condition requirementsYour Record-Triggered Flow should look like this:
Create a second Record-Triggered Flow
Note: Remove the last filter if you have also created future DUMMY OPP records
Your second Record-Triggered Flow should look like this:
You can now create a report on opportunities that have a close date up until today. If you have created a dummy opportunity for future dates, you can set the date range to the future in the report. Instead of using the record count in the report, you should use the sum of the formula field you created at the beginning. Also, ensure that you turn the toggle for Row Counts to the off position.
You can also generate a report on the amount field, which will show as 0 in a graph since it is not set in the flows.
Note:
_____________________________________________________
Written by: Eric Praud | Salesforce MVP
Eric is a Senior Consultant at Epam PolSource and has been working in the Salesforce ecosystem for the past 12 years. He started his Salesforce career as a Salesforce support agent. Like many others, he stumbled across the platform accidentally and hasn’t looked back since. Eric is very active in the Answers community and has been a Salesforce MVP since March 2021.
Submission reflects only the opinion of the user who made available the Submission and not the opinions of Salesforce, regardless of whether the user is affiliated with Salesforce, and may contain constitute products, services, information, data, content, and other materials made available by or on behalf of third parties ("Third Party Materials). Salesforce neither controls nor endorse, nor is Salesforce responsible for, any Third Party Materials, including their accuracy, validity, timeliness, completeness, reliability, integrity, quality legality, usefulness or safety, or any applicable intellectual property rights. Any Submission made available through any message board or forum in response to posted questions, or that otherwise purports to answer any questions, including any questions about Salesforce or Programs, are made available for your general knowledge only and should never rely upon s answer to your specific questions (even if an answer is marked as a "best answer or with any similar qualifications). You should always contact Salesforce support for answers to your specific questions. Salesforce has no control over Submissions and is not responsible for any use or misuse (including any distribution) by any third party of Submissions.
If you have questions, tap into the wisdom of our entire Trailblazer Community here: https://trailhead.salesforce.com/trailblazer- community/feed
000395398

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.