Forum Discussion

margaridatedim's avatar
margaridatedim
Frequent Visitor
1 year ago
Solved

Auto-Reset Slicer Selection When Changing Selection in Main slycer

I have two attributes in my report: "Sales Groups" and "Sales Types," with a one-to-many relationship between them. Each "Sales Type" belongs to a single "Sales Group," while one "Sales Group" can ha...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi margaridatedim ,

     

    You can try formula like below:

     

    FirstSalesType = 
    CALCULATE(
        FIRSTNONBLANK('Sales Types'[Types], 1),
        FILTER(
            'Sales Types',
            'Sales Types'[Group] = SELECTEDVALUE('Sales Groups'[Group])
        )
    )
    SelectedSalesType = 
    IF(
        ISFILTERED('Sales Types'[Types]),
        SELECTEDVALUE('Sales Types'[Types]),
        [FirstSalesType]
    )

     


    Best Regards,
    Adamk Kong

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi margaridatedim ,

     

    Choose  SelectedSalesType to Filters on this visual. You can check pbix file i have provided.

    Best Regards,
    Adamk Kong

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.