Hi All, I'm currently working on a dashboard that was developed by someone else and they have used a datasource filter that I'm struggling to wrap by head around. I'm using SAS VA 8.5.1 on SAS Viya 3.05. IF ( 'Rolling Stocktake Schedule'n = 'Year One' )
RETURN ( ( 'Controlled Item Indicator'n = 'YES' ) OR (
'Rolling Stocktake Timetable'n = 'Year One' ) )
ELSE (
IF ( 'Rolling Stocktake Schedule'n = 'Year Two' )
RETURN ( ( 'Controlled Item Indicator'n = 'YES' ) OR (
'Rolling Stocktake Timetable'n = 'Year Two' ) )
ELSE (
IF ( 'Rolling Stocktake Schedule'n = 'Year Three' )
RETURN ( ( 'Controlled Item Indicator'n = 'YES' ) OR (
'Rolling Stocktake Timetable'n = 'Year Three' ) )
ELSE ( 'Main Asset Number'n Missing ) ) ) I can't understand why the filter references 'Rolling Stocktake Schedule'n in both the IF and RETURN statements for all three values of 'Rolling Stocktake Schedule'n, or why the OR statement is used. Is the filter stating: If 'Rolling Stocktake Schedule' is equal to "Year One" then return any rows where 'Rolling Stocktake Schedule' is equal to "Year One" or 'Controlled Item Indicator'n = 'YES', excluding all others, then repeating this for "Year Two" and "Year Three". In other words, return all rows where 'Rolling Stocktake Schedule' is equal to "Year One", "Year Two", "Year Three", or 'Controlled Item Indicator'n = 'YES'. Is this right? Also, does the final ELSE statement return any rows where 'Main Asset Number'n = Missing, or excludes these? Any help would be greatly appreciated 😄
... View more