Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

passing a list to conditional statement

hi all,

i have two projects that need similar concept. 

 

One is where i need to add missing client codes. The source data has had fields that have been repurposed over time.  At least 90% of the clients have codes in one of the 5 columns,   i have a market list where I would normally merge to table.  Instead I want to evaluate the market list against these columns and if value exists return it to column otherwise leave blank.   Was going to merge columns for conditional statement and then expand.  Found Imke idea to unpivot the columns and re-pivot after performing conditional  statement.    I have found several options to pass lists as filter arguments.  I need all records to return.  My attempt to parameterize conditional statement returned all nulls. 

 

The second project is similar in that i need to identify ads placed in sports games.  We have a daypart field for sports but is optional so have a lot of data that fell into prime...every program during prime time tv.  No uniformity in progam naming and abbreviations.  huge file.  anyway i have compiled lists of games, leagues, teams, etc...  i need to categorize the records for easy filtering.  i need to identify sports, basically that would be any record where any item in the list shows up.  from there i need to specify the game in one filter, the teams in next filter, leagues, etc.... 

 

if value = {list of criteria} then {list of criteria value} else null

 

just not sure how to pass the value to the conditional statement. 

 

thanks

Theresa

6 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi,  I apologize.. just saw message this am. Kinda sorta on vacation, so probably not the best time to submit a request.

       I have a file ready to load but let me test this potential solution first. 

       

      Thx

      T

    • Anonymous's avatar
      Anonymous
      Not applicable

      ok.  I had seen that topic before i posted.  they are filtering data.  I am wanting to categorize the data for future filtering.   tried playing around with the parameters and just confused myself.   let me see if i can figure out how to load the sample file for you to see.

    • Anonymous's avatar
      Anonymous
      Not applicable

      this is my first attempt at sharing a link, so we will see how it goes.

      i keep pasting but can't see anything.  The message shows some placeholders but that is it.

      Please let me know if this come thru on that end.  Thx T