"Regular Joe" Beats Developer with Elegant Formula Solution! (Can You spot the Mistake?)

Описание к видео "Regular Joe" Beats Developer with Elegant Formula Solution! (Can You spot the Mistake?)

In today's episode of 'Q & A with Matt K!', Matt was challenged to craft a report that would produce a graph comparing "Year to Date" results with the same period from the previous year! (For example, January - May 2024 vs January - May 2023).

Here's a link to the Question: https://trailhead.salesforce.com/trai...

Matt actually came up with a few solutions (before Chris offered his one, less clunky solution). The whole process involved:

04:31 Creating the relevant data in the org so we'd have something to test with.

13:10 Accomplishing a similar solution with filters for individual months (not ideal).

14:55 Tackling the Year-to-Date aspect of the question. Beginning with creating formula fields on the records.

15:17 A Formula for Month Name to let us quickly filter in the months we want (across years in report).

17:35 A Formula for "Is YTD Any Year" to check today's date against previous years' dates on a record.

19:33 Matt freezes (supposedly unintentionally) and gives us a glimpse of just how unedited and unrehearsed these calls are.

21:35 Matt returns

26:00 Recap

26:53 Adding fields to a Lightning Page

30:30 Additional Fields/Formulas - only including "completed" months.

37:45 Chart Demo

40:55 A New Approach (from a non-dev)

44:28 Formula Best Practices. (Saving formulas in the description and adding comments in formulas and how that affects character count).

47:48 Conclusion!

Did you spot the error? We'll fix it in the next video!

And, of course, if you have any questions of your own you'd like to see Matt answer in the hotseat, leave them here in the comments or drop them into the form at www.go.mkp.dev/Q&A !

Комментарии

Информация по комментариям в разработке