I want to write the case expression for this condition in View Indicate "Y" in the report if Livestream (all) is selected and display all the individual platforms under livestream (App, Online,O&O,etc). If Livestream (all) is not selected, but individual platforms are selected, indicate the platform selected in the report. Indicate “No” if individual platforms are not selected or Livestream (All) is not selected.
how can I write this case expression in my view. The case expression should return multiple rows. Is there any other way to do this instead of using a case like a Function or join or something considering performance
Tree_id | DESCRIPTION | PRENT_NODE_ID |
---|---|---|
122 | Livestream | 0 |
122 | Livestream BDU App | 323 |
122 | Livestream BDU Online | 323 |
122 | Livestream O&O App | 323 |
122 | Livestream O&O Online | 323 |
Table data and same should be displayed in the view. If Livestream is Present all should come, If not then the individual platform should come whichever selected, if nothing is selected nothing should come, The column should only contain the description and not the ids. This will be one column in the report all the others.
Expected output if Livestream is Y
DESCRIPTION |
---|
Livestream |
Livestream BDU App |
Livestream BDU Online |
Livestream O&O App |
Livestream O&O Online |
if any two of the subset say bdu app and bdu online is seleted then it should be like this
DESCRIPTION |
---|
Livestream BDU App |
Livestream BDU Online |