Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
acbg
Resolver III
Resolver III

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 2
v-xuding-msft
Community Support
Community Support

Hi @acbg ,

 

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

Try to create such formulas.

v-xuding-msft_0-1606187414616.png

 

 

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

 

 

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

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.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors