Hey community, I want to ask that how can I only get unique Production ID i.e. 1000, 1330 and 1600 and I don't want it to be repetitive like it is in the picture below. It should consist of only three lines each for one Production ID. Kindly suggest how can I do that.
The query should retrieve the distinct records for all the fields specified in the query object, not the ones specified in your procedure logic.
You didn't post your query, but I can see that you commented out some of the query fields on your screenshot.
Things like uerMember or Description also being considered as part of distinct value.
Yes teddy I have used Method=Sum but it's not working. I tried to use count but my fields are integer and not code.
Hey, still unclear. Can you show me the code for this?
Hi, You can also directly add a loop that inserts a new row if it doesn't exist and modifies the record if it exists, which is also more convenient.
But defining in Query is the best performance.
Hope this helps as well.
Thanks.
ZHU
Check if your query has at least one aggregate column to trigger the distinct.
Refer to below link for more information.
HI,
On query to get unique values you must group only for those unique fields you need to obtain.
Hi,
If you have the option to work with query object. You can create some like this:
Actually I am getting the data from a query. and yes I'm inserting it in a custom table. the query contains repetitive values. this is how I'm getting values but they are repetitive as shown in the above image
Is it a custom table/page?
How are you filling this table now?
can you show the code?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,228 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156