cancel
Showing results for 
Search instead for 
Did you mean: 
Vrinda21
Occasional Member - Level 1

How to sum field from two queries in concur Report

I’ve created two queries, both of which include the field Report ID, but each is filtered differently. I'm now trying to aggregate the counts of Report ID from both queries, but I'm encountering the error below.

Could someone please help me understand this error and suggest how we can perform the summation?

Thanks!

Vrinda21_0-1744373045024.png

 

4 REPLIES 4
KevinD
Community Manager
Community Manager

@Vrinda21 the cross joins error leads me to believe that you pulled data from two areas in the data warehouse that don't gel. You might need to create a Union or Join report to achieve what you are looking to do.


Thank you,
Kevin
SAP Concur Community Manager
Did this response answer your question? Be sure to select “Accept as Solution” so your fellow community members can be helped by it as well.
Vrinda21
Occasional Member - Level 1

Hi Kevin,

Thanks for the response

I’m working on aggregating the count of fields that appear in two different queries. Both queries include the Report IDfield, but it's filtered differently in each one, as shown in the screenshot below:

  • AP Query:
    The Report ID is filtered based on the Step Action Date/Time from the Expense Report Workflow Trail.

Vrinda21_0-1744603490196.png

Final Query

The Final Query is a union of the AP and SAP queries.

  • SAP Query:
    Here, the Report ID is filtered based on the Audit End Date from the Concur Audit Service.

Vrinda21_1-1744603619603.png

Vrinda21_2-1744603660652.png

Vrinda21_3-1744603679460.png

 

Hence, the field report ID is filtered basis the 'step action date/time' coming from 'expense report workflow trail' in AP query and basis the 'concur audit service' coming from 'concur audit service' in SAP query.

Given this, could you please confirm whether the Expense Report Workflow Trail and Concur Audit Service can be joined?

 

 

KevinD
Community Manager
Community Manager

@Vrinda21 follow-up question...what are you trying to accomplish with this aggregation? Are you looking for your report to show a report ID count? Is this just to get a total amount of Reports that have completed that workflow step? 


Thank you,
Kevin
SAP Concur Community Manager
Did this response answer your question? Be sure to select “Accept as Solution” so your fellow community members can be helped by it as well.
Vrinda21
Occasional Member - Level 1

hi Kevin

We are trying to aggregate the results we get from the two queries - AP Query and Final Query. 

Vrinda21_2-1744716570472.png

 

As mentioned above, in the AP query, the Report ID is filtered based on the Step Action Date/Time from the Expense Report Workflow Trail. The Final Query is a union of the AP and SAP queries where in the SAP Query, the Report ID is filtered based on the Audit End Date from the Concur Audit Service.

Also, we need to take out the % of result we get from these queries and divide by the difference. I was able to compute the difference using the 'except' function.

Vrinda21_3-1744716595174.png

 

Vrinda21_4-1744716665055.png

 

However, when i try to calculate the %, i get the below error.

Vrinda21_5-1744716962879.png

 

Vrinda21_6-1744717072293.png

Please confirm if such calculations are possible in concur reporting.