cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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

Accepted Solutions
Highlighted
Microsoft
Microsoft

Re: Create a meassure that ignore one slicer

Hi @amenchaca ,

 

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%...

 

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
Highlighted
Super User IV
Super User IV

Re: Create a meassure that ignore one slicer

@amenchaca ruta is a different dimension table?






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.





Highlighted
Frequent Visitor

Re: Create a meassure that ignore one slicer

Dear Parry,

 

"ruta" is a column on sales table. 

 

Thanks for your help

Highlighted
Frequent Visitor

Re: Create a meassure that ignore one slicer

Dear @parry2k,

 

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

Regars,

Andres

Highlighted
Microsoft
Microsoft

Re: Create a meassure that ignore one slicer

Hi @amenchaca ,

 

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

 

Highlighted
Frequent Visitor

Re: Create a meassure that ignore one slicer

Dear @v-deddai1-msft,

 

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

 

Best Regards,

Andrés

Highlighted
Microsoft
Microsoft

Re: Create a meassure that ignore one slicer

Hi @amenchaca ,

 

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%...

 

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

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

We are thrilled to announce we will begin running a monthly webinar series named Power BI Dev Camp.

Top Kudoed Authors