Eveningโฆ Please could someone point a newbie in the right direction?
I need to look at [asset_name] and find the most recent [survey_status] in the survey table below which has updates & adds permissions:
And then put it in [survey_status] against [rfdesign_source_asset_name] in the rf_design table below which only has updates permissions:
Thanks in advanceโฆ
Solved! Go to Solution.
LOOKUP(
MAXROW(โsurveyโ,โ_ROWNUMBERโ,
IN([_THISROW].[rfdesign_source_asset_name], [asset_name])
),
โsurveyโ,
โidโ,
โsurvey_statusโ
)
You might want to try below in an app_formula of a new Virtual Column of the rf_design table:
LOOKUP(
MAXROW(โsurveyโ,โ_ROWNUMBERโ,
[asset_name]=[rfdesign_source_asset_name]
),
โsurveyโ,
โidโ,
โsurvey_statusโ
)
Small adjustmentโฆinstead of saying
โฆ=[rfdesign_source_asset_name]),
you would need to say
โฆ=[_THISROW].[rfdesign_source_asset_name])
Either of these two columns are then an EnumList?
Hi @Aleksi โฆ
Correctโฆ [survey_status] in the survey table is Enumโฆ
Enum field is not a list type. Only EnumList is.
Check your [asset_name] and [rfdesign_source_asset_name] columns
Hi @Aleksi,
Is there a way for me to โflattenโ the [asset_name] EmunList result and refer to just the value presented in that fieldโฆ?
Hi @Aleksi,
I donโt know if this will helpโฆ This is what [asset_name] Valid If does:
SORT(UNIQUE(
SELECT(RF_Design[RFdesign_SOURCE_Asset_Name],
AND([_THISROW].[Select_Asset_Type]=[RFdesign_SOURCE_Asset_Type], [RFdesign_Main_Asset] = [_THISROW].[Select_Cabinet_To_Survey])) +SELECT(RF_Design[RFdesign_DESTINATION_Asset_Name], AND([_THISROW].[Select_Asset_Type]=[RFdesign_DESTINATION_Asset_Type], [RFdesign_Main_Asset] = [_THISROW].[Select_Cabinet_To_Survey]))), FALSE)
LOOKUP(
MAXROW(โsurveyโ,โ_ROWNUMBERโ,
IN([_THISROW].[rfdesign_source_asset_name], [asset_name])
),
โsurveyโ,
โidโ,
โsurvey_statusโ
)
Hi @Bahbus
Your solution works and shows the expected result when I look at the form i.e. [survey_status] shows โCompletedโ.
However, Iโm making some kind of rooky error cause I only see the updated [survey_status] in my table if I update the record?
Please advise if it is possible to show updated [survey_status] for all rows without updating the record?
I was expecting to see โCompletedโ for CAT037 too and obviously nothing for anything else yet?
For a normal column, you need to open the record and save.
I believed, you will need to update it again later, you might want to consider to use an Action for that.
User | Count |
---|---|
15 | |
11 | |
10 | |
8 | |
3 |