examples/python/create_dashboard_filter.py
def create_filter(dash_id: str, filter_name: str, filter_model: str, filter_explore: str , filter_dimension: str ) -> DashboardFilter:
    """Creates a dashboard filter object on the specified dashboard. Filters must be tied to a specific LookML Dimension.

    Args:
        dash_id (str): ID of the dashboard to create the filter on
        name (str): Name/Title of the filter
        model (str): Model of the dimension
        explore (str): Explore of the dimension
        dimension (str): Name of the dimension. Must be in the format 'view_name.field_name'
    """

    return sdk.create_dashboard_filter(
        body=models.WriteCreateDashboardFilter(
            dashboard_id=dash_id,
            name=filter_name,
            title=filter_name,
            type='field_filter', # New dashboards are only compatible with field filters
            model=filter_model,
            explore=filter_explore,
            dimension=filter_dimension,
            # Add additional parameters as necessary for allowing multiple values, ui configuration, etc.
            )
        )
Creates a dashboard filter object on the specified dashboard. Filters must be tied to a specific LookML Dimension.

    Args:
        dash_id (str): ID of the dashboard to create the filter on
        name (str): Name/Title of the filter
        model (str): Model of the dimension
        explore (str): Explore of the dimension
        dimension (str): Name of the dimension. Must be in the format 'view_name.field_name'
    
Creates a dashboard filter object on the specified dashboard. Filters must be tied to a specific LookML Dimension.
Creates a dashboard filter object on the specified dashboard . Filters must be tied to a specific LookML Dimension .
def create_filter(dash_id: str, filter_name: str, filter_model: str, filter_explore: str , filter_dimension: str ) -> DashboardFilter:
    return sdk.create_dashboard_filter(
        body=models.WriteCreateDashboardFilter(
            dashboard_id=dash_id,
            name=filter_name,
            title=filter_name,
            type='field_filter', 
            model=filter_model,
            explore=filter_explore,
            dimension=filter_dimension,
            )
        )
def create_filter ( dash_id : str , filter_name : str , filter_model : str , filter_explore : str , filter_dimension : str ) -> DashboardFilter : return sdk . create_dashboard_filter ( body = models . WriteCreateDashboardFilter ( dashboard_id = dash_id , name = filter_name , title = filter_name , type = 'field_filter' , model = filter_model , explore = filter_explore , dimension = filter_dimension , ) )
Creates a dashboard filter object on the specified dashboard.
Creates a dashboard filter object on the specified dashboard .
"""Creates a dashboard filter object on the specified dashboard. Filters must be tied to a specific LookML Dimension.

    Args:
        dash_id (str): ID of the dashboard to create the filter on
        name (str): Name/Title of the filter
        model (str): Model of the dimension
        explore (str): Explore of the dimension
        dimension (str): Name of the dimension. Must be in the format 'view_name.field_name'
    """ # New dashboards are only compatible with field filters # Add additional parameters as necessary for allowing multiple values, ui configuration, etc.
dash_id
str
ID of the dashboard to create the filter on
ID of the dashboard to create the filter on
filter_name
str
filter_model
str
filter_explore
str
filter_dimension
str
name
Name/Title of the filter
Name / Title of the filter
model
Model of the dimension
Model of the dimension
explore
Explore of the dimension
Explore of the dimension
dimension
Name of the dimension. Must be in the format 'view_name.field_name'
Name of the dimension . Must be in the format ' view_name . field_name '