How to fetch the value from the table when the ref is enumlist ?
How to get the value in job_id column of the production from job_id column of the processes ?
Also how to build the related process list - REF_ROWS(โProcessesโ , ???)
Not sure to understand. What about, in the table PRODUCTION, assuming [PROD_ID]
is the key_column:
SELECT(PROCESSES[Job_ID],
IN( [_THISROW], SPLIT(CONCATENATE([PROD_IDs])," , ")
))
About that:
I donโt get it.
I am attaching the images of the table columns โฆsee if that helps
I think I was quite there, I adapted it.
Can you confirm the expression you want to build will be on the table โProductionโ ?
If so, can you let me know if that works ?
SELECT(Prod_Process[Job__File_Id],
IN( [_THISROW], SPLIT(CONCATENATE([Production_IDs])," , "))
)
List of related processes . normally if the column containing ref is not an enumโฆ It would be REF_ROWS(โprod_processโ,โProduction_Idsโ). โฆbut production_ids is an enum list with base type ref of production tableโฆ so how do I write this expression?
What about:
FILTER("Prod_Process",
IN( [_THISROW], SPLIT(CONCATENATE([Production_IDs])," , "))
)
FILTER(Prod_Process,IN([_THISROW],[Production_IDs]))
I am using this and itโs working fine but I felt thatโs getting the app slow .
Can you think of my main problem on getting the job_id from prod_process table to production table
Thanks Aurelien . Just in time . I have done the following and it seems working . Since I am already filtering the Prod_PRocess in my Related Processes Column, I am not using the Prod_Process Column again and instead have used related processes โฆ
Column - Related Processes
FILTER(Prod_Process,IN([_THISROW],[Production_IDs]))
Column - Job_ID
Any(Select([Related Processes][Job_File_Id],IN([_THISROW],[Production_IDs])))
But I am wondering if I can simplify both these expressions further to make the app faster. ?
Yes.
Because FILTER and SELECT run on a whole table, the only way I see to make the app faster, is to use a slice, or even more a security filter, in order to โshortenโ the table.
โฆ This is the best idea I have in mind.
Ok . Let me check on that .
User | Count |
---|---|
17 | |
14 | |
10 | |
7 | |
4 |