Skip to main content

I have a parameter called Device with 3 String values: 'All Devices', 'Desktop', and 'Mobile Phone'.

 

I am trying to make a calculated field so in my view, it only counts the BCIDs that have a primaryHardwareType of Desktop or Mobile, or if it's all devices, it counts all the BCIDs.

 

How do I overcome this error? I attached my Tableau workbook

 

How to use calculated field with parameter to filter by device?

3 answers
  1. Feb 16, 2022, 2:17 PM

    @Emily Kuo​ 

    Hi, in this case you can use the following field as a filter:

    [Device]=[Prymary Hardware Type] OR [Device]="All Devices"

    If this post resolves the question, would you be so kind to "Select as Best"?. This will help other users find the same answer/resolution and help community keep track of answered questions. Thank you.

     

    Regards,

     

    Diego

    Tableau Ambassador

0/9000