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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Create a meassure that ignore one slicer

Hi all, 

 

I need your help to create a formula in DAX that ignores a slicer (fliter). 

I have a matrix (table) with sales in kilos by customer. On the other side I have a slicer with the name of the route of each sales representative by day. What I need to do is to select a route on the slicer just to filter the customers that have any sales by in this route but not to filter the total sales in kilos of that customer. The idea is to filter the lines in the table with the customers to visit in a particular day but to know the total sales of that customer (not filtered by the route selected). Below you will find the tables and slicers refered. 

 

amenchaca_0-1594316180909.png

When selecting a "ruta actual" value I need the table to show only the customers in that route but with the total sales in kilos (kgs) unchanged. 

amenchaca_1-1594317208000.png

Thanks in advence for your help.

 

@amitchandak , @parry2k , @mahoneypat , 

 

 

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

I can’t write an accurate formula without your sample data, but I understand your problem.Please refer to https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907 and https://finance-bi.com/power-bi-totals-incorrect/#:~:text=The%20easiest%20way%20to%20fix,the%20rows%20for%20the%20total.

 

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

 

Best Regards,

Dedmon Dai

View solution in original post

6 REPLIES 6
v-deddai1-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can create a measure for Kgs:

 

 

measurekgs = IF(HASONEVALUE('Table'[Cliente]), CALCULATE(SUM(..),FILTER('Table',......)),CALCULATE(SUM(..),FILTER(ALL('Table'),......)))

 

 

Best Regards,

Dedmon Dai

 

Anonymous
Not applicable

Dear @v-deddai1-msft,

 

Still not working. Could you please specify the fields in your meassure.

 

Best Regards,

Andrés

Hi @Anonymous ,

 

I can’t write an accurate formula without your sample data, but I understand your problem.Please refer to https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907 and https://finance-bi.com/power-bi-totals-incorrect/#:~:text=The%20easiest%20way%20to%20fix,the%20rows%20for%20the%20total.

 

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

 

Best Regards,

Dedmon Dai

parry2k
Super User
Super User

@Anonymous ruta is a different dimension table?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Dear @parry2k,

 

Ruta is not a different dimension table. It is a column on sales table.

Regars,

Andres

Anonymous
Not applicable

Dear Parry,

 

"ruta" is a column on sales table. 

 

Thanks for your help

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.