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 |