Skip to main content
Known Participant
Mar 28, 2022 6:15 PM UTC
Solved

Creating a reporting grouping data by day

Hi there !

Trying to create a report based on counting register and group by date. So, the result should something like that:

Records    Day
      10        25
      4          26
      9          27
      25        28
      16        29

Looking for a solution, I find out this function that handler month and year, but nothin for day.

Is it possible to do that in another way ? Dunno, a workaround using a expression, for example.

Thanks anyway for read till here!

    peter.lewis
    Employee
    Mar 28, 2022 7:37 PM UTC

    It looks like you're using a!queryEntity() - can you use a!queryRecordType() instead?

    8 replies

    stefanhelzle0001
    Brainy
    Mar 28, 2022 6:23 PM UTC

    Syncronized records support custom fields which allow you to get the date from a dateTime field. Then you can aggregate on this custom field.

    Known Participant
    Mar 28, 2022 7:08 PM UTC

    Thanks for reply so fast! 

    looks like this doesn't work, since aggregationFields cannot be used with custom record field expressions, according the documentation. 

    Or there's another option ?

    peter.lewis
    Employee
    Mar 28, 2022 7:13 PM UTC

    Which version are you using? Assuming you're on 21.2 or later, The grouping function supports grouping by lots of things, including DAY_OF_MONTH, DATE, etc.Can you share a sample of the query you created?

    Known Participant
    Mar 28, 2022 7:24 PM UTC

    We're using Appian version 21.4. 

    According the documentation, only YEAR and MONTH could be used in this situation. Is there another approach ?

    peter.lewis
    Employee
    Mar 28, 2022 7:37 PM UTC

    It looks like you're using a!queryEntity() - can you use a!queryRecordType() instead?