cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

New Member

## DAX: remove visual filter set by a measure for calculation

Hello Experts,

I have a visual of top-3 cutomers and their revenue. The rank is done as a measure and added to a visual filter.

I'd like to include in this visual another measure, which should ignore the rank (i.e. run for all customers, and of course keep all other report filters). In my understanding, I can't use REMOVEFILTERS as I need a column as an argument.

A hint on how to achieve this would be greatly appreciated!

Thanks,

MetroRogi.

1 ACCEPTED SOLUTION
Community Support

Hi @MetroRogi ,

Regarding your question, the argument to the function does need to be a column rather than a measure.Perhaps you could add your rankings as filters to the measure instead of adding the rankings to the filter window.

The Table data is shown below:

``Total = SUM('Table'[Column2])``
``Rank = RANKX(ALL('Table'[Column1]),[Total],,DESC,Skip)``
``Measure = IF( [Rank] <4,[Total])``

Final output:

2 REPLIES 2
Community Support

Hi @MetroRogi ,

Regarding your question, the argument to the function does need to be a column rather than a measure.Perhaps you could add your rankings as filters to the measure instead of adding the rankings to the filter window.

The Table data is shown below:

``Total = SUM('Table'[Column2])``
``Rank = RANKX(ALL('Table'[Column1]),[Total],,DESC,Skip)``
``Measure = IF( [Rank] <4,[Total])``

Final output:

Super User

@MetroRogi  create a measure like below, this will do the job.
Total Revenue (Ignore Rank) =
CALCULATE(
[Total Revenue],
ALL('Customer'[CustomerName])
)

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.