cancel
Showing results for
Did you mean:
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.

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
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

6 REPLIES 6
Highlighted
Super User IV

## Re: Create a meassure that ignore one slicer

@amenchaca ruta is a different dimension table?

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.

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

## 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

## 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

Announcements

#### August 2020 Community Challenge: Can You Solve These?

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

#### Community Blog

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

#### Community Summit Australia – Join Online!

Be a part of the leading Microsoft Business Applications digital event, curated for the APAC community.

Top Solution Authors
Top Kudoed Authors