Content Filters

Browser Filters "p-filters"

13min
pfilters documentation overview pfilters (python particle filters) allow you to apply pre defined filters to embedded domo dashboards through url query parameters these filters are applied immediately upon page load, providing filtered data views while still allowing users to modify or remove filters as needed real world example https //jeanz yoursubdomain com/workspace/jeanz app studio/embed?group=basic 1\&page=jeanz \&pfilters=\[{"column" "store region","operand" "equals","values" \["west"]}] use cases pre filtering dashboards to specific regions or values creating customized dashboard views for different user groups linking between dashboards while maintaining context simplifying user experience by pre selecting relevant data url structure to implement a pfilter, append the following structure to your dashboard url your domain domo com/embed/pages/private/your page id?pfilters=\[{filter parameters}] basic filter format ?pfilters=\[{ "column" "columnname", "operand" "operand type", "values" \["value1", "value2"] }] implementation steps identify the column name from your domo dataset that you want to filter on select the appropriate operand (see list below) determine the value(s) to filter by construct the url with the pfilter parameter test the url to ensure proper filtering example simple equals filter for a region example domo com/embed/pages/private/abcde?pfilters=\[{"column" "region","operand" "equals","values" \["west"]}] multiple filters example example domo com/embed/pages/private/abcde?pfilters=\[{ "column" "pos", "operand" "in", "values" \["te","wr"] }, { "column" "location", "operand" "in", "values" \["amsterdam","anchorage"] }] supported operands operand description example in match any value in array "values" \["te","wr"] contains contains the specified text "values" \["sales"] equals exact match "values" \["west"] not equals does not match "values" \["east"] greater than greater than value "values" \[1000] less than less than value "values" \[500] great than equals to greater than or equal to "values" \[100] less than equals to less than or equal to "values" \[50] between between two values "values" \[10, 20] important notes spaces in values the browser automatically handles spaces in values by encoding them as %20 you don't need to manually encode spaces column names use the exact column name from your domo dataset array format values must always use square brackets for the array format, even when only using a single value persisting filters domo can automatically create pfilters when you check "persist filters" in the embed dialog link between dashboards pfilters can be used to link between dashboards while maintaining filter context filter persistence when "persist filters" is enabled in the embed dialog, domo automatically creates pfilters that carry over when users navigate between pages users click on external links (with card interactions turned on) filter selections are made on the dashboard this allows for a consistent user experience when navigating through multiple dashboards troubleshooting verify column names exactly match those in your dataset check that operands are in all caps (e g , "equals" not "equals") ensure values are properly formatted in the array syntax validate the complete url in the browser's address bar use the browser's network tab to confirm filter parameters in post requests references for more information, refer to domo's official documentation on pfilters and programmatic filtering