Forum Discussion

acbg's avatar
acbg
Icon for Resolver III rankResolver III
5 years ago

Pass Slicer Values only when filtered

Trying to pass slicer selections into a dax formula but only if the slicer was filtered.

4 slicers: Company, Division, Group and Sales Rep.

Need to count number of distinct sales orders based on the slicers above. 

 

I can't connect any of the dimensions to this particular fact since I am using RLS and don't want this table to get filtered down. And each of the dimensions are client specific. Essenitally trying to compare client specific data to all data based on slicer selection.

Is there a easy way to pass the values only when slicer is filtered? If a particular slicer is not filtered then don't pass that slicer values. But pass the rest of the filtered slicers.

Calculate(DISTINCTCOUNT('sales All'[SalesOrderSK]),Filter(....

2 Replies

  • v-xuding-msft's avatar
    v-xuding-msft
    Icon for Community Support rankCommunity Support

    Hi acbg ,

     

    The fields in your slicers are not linked to the ‘sales All’ table?

    Try to create such formulas.

     

     

    If the problem is not resolved, please provide the necessary sample data and screenshots.

     

     

    • acbg's avatar
      acbg
      Icon for Resolver III rankResolver III

      Hi v-xuding-msft 
      Yes the slicer table is not linked to the sales all table.
      Would you mind showing how i could pass multiple values?
      And also the formula given has or on the filter, I don't want the values to be passed if its not selected.