Skip to main content
Randy Colanta perguntou em #Group

I have a tableau worksheet that I'm building.  I'm trying to parse out the row data that begins with "#" and then create a calculated field to use as a filter/parameter for the report. I tried creating a split but the result is not what I expected. The value on "#" can be anything. I am attaching the sample workbook.

 

IF CONTAIN([PPTInclude,"⌗Group1") THEN "Group 1"

ELSEIF CONTAIN([PPTInclude,"⌗Group2") THEN "Group 2"

.

.

END

 

Expected Results as Filter/Parameter:

     #Group 1

     #Group 2

     #Group 3

     #Group 4

     .

     .

Parsing multiple value to use as a parameter

4 respostas
  1. 6 de mar. de 2019, 01:03

    There isn't a simple way (that I can think of) to create a list to fill a parameter.

     

    This regex will grab the first item only. If you want to grab the others, they would have be unique columns for each row and you couldn't use as a parameter. If the list is known, you can do some join work to get the full list, but I guess if it was known you'd just fill the parameter with that.

     

    REGEXP_EXTRACT([PPT Include], "#(\w+)")

    There isn't a simple way (that I can think of) to create a list to fill a parameter. This regex will grab the first item only.

     

    To grab the other values you'd do something like...

    Screen+Shot+2019-03-05+at+5.05.50+PM.png

0/9000