Categories
- All Categories
- Oracle Analytics and AI Learning Hub
- 40 Oracle Analytics and AI Sharing Center
- 20 Oracle Analytics and AI Lounge
- 276 Oracle Analytics and AI News
- 50 Oracle Analytics and AI Videos
- 16.2K Oracle Analytics and AI Forums
- 6.4K Oracle Analytics and AI Idea Labs
- Oracle Analytics and AI User Groups
- 102 Oracle Analytics and AI Trainings
- 17 Oracle Analytics and AI Challenge
- Find Partners
- For Partners
Why would MAX( ... BY ... ) give different results for different users?
Hi. I am a BI Administrator. I was advising a BI Content Author on filtering an analysis to pick only the maximum of a column where 3 other columns are a unique grouping; specifically, to pick the maximum Clause Version per combined Contract No, Clause No, and Org Name.
I had her add a column like this:
MAX( "Clause Version" BY "Contract No", "Clause No", "Org Name").
Then I had her filter the new column like this, placing the filter below all the other filters:
MAX( "Clause Version" BY "Contract No", "Clause No", "Org Name") = "Clause Version"
We tested it by filtering for a contract that we knew had multiple versions for one of the clauses. When I ran the analysis, it worked perfectly — the results had only one version per contract, clause and org. When she ran it, however, all the versions continued to appear in the results. In case it was pulling from her cache, she tried refreshing the results — but the results did not change — then tried disabling cache in the Advanced tab. Still the results did not change. Still I was seeing only 1 version and she continued to see multiple.
Does anyone know why this would happen, that MAX( … BY … ) would give different results for different users?
Thanks.
Best Answer
-
Hi,
Did you look at the generated queries? And while there also at the LSQL query? If the LSQL queries between your test and her test are exactly the same, then the physical query should give you answer on what is wrong.
It is possible that there are extra filters added to the query based on the roles of users, and those change the behavior of the query.
But the answer is in a single place: the physical SQL queries.
1
Answers
-
Thank you, @Gianni Ceresa. I will compare the two logs.
0
