Remote filter table report with aggregate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2024 10:00 PM
Hi all,
I was exploring running reports on remote tables in my PDI and encountered a problem on it. I like to see if anyone faced this problem before and what workaround did you use.
The problem I encounter is that that a score type report on a remote table doesn't return any results when I apply a filter condition.
Details about the findings: I created a remote table that retrieves records from the incident table (just for testing)
And ran a single-score report on this table, all is fine, when I ran it without a filter - example below.
But the moment i add a filter, a filter that will always return true, it doesn't return any records no matter which aggregation i used - example below.
A bit more poking around reveals that it seems to affect the score type reports, a normal list type report runs fine with the same filter conditions - example below.
Also, running a score type report on a standard non-remote table, for example, the incident table, does not have the same issue when there are filter conditions.
The current work around I can think of is control the filter in the remote table definition instead of the report filter conditions. Not the most ideal as this would mean that if I require multiple score type reports on the same table with different filter conditions, I will need to create different remote tables and its definitions to achieve this.
I am unable to find this behavior for remote tables in ServiceNow's docs or knowledge articles, so I will appreciate it if any one have any official information about this!
Regards,
Wei
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 02:14 AM
The one with '5' is an average and your list also has only 1 record. The '0' is a count, so I think it could still be a data related issue. What do you get with a 'count' without the filter?
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 06:11 PM
Without count it is 1:
The screenshot of count with '0' records was because i was trying out all aggregation types, and happened to take a screenshot when it was on 'count.
With the condition filter, i should be expecting 1 records also, but it is showing 0 records
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 02:54 AM
Hi @wclim
Just run the report on list view or list type and see how many records are coming.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 06:13 PM
Currently, I have applied a filter within the remote table definition directly, so in the list view it shows 1 record, with or without the filter that will evaluate to true.
Without filter:
With filter: