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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
MetroRogi
Regular Visitor

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
Anonymous
Not applicable

Hi @johnbasha33 ,thanks for the quick reply, I'll add further.

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:

vzhouwenmsft_2-1715574715804.png

 

 

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

 

 

Final output:

vzhouwenmsft_3-1715574791710.png

 

Finally you can add additional measures.

 

vzhouwenmsft_4-1715574921819.png

 

 

 

 

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @johnbasha33 ,thanks for the quick reply, I'll add further.

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:

vzhouwenmsft_2-1715574715804.png

 

 

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

 

 

Final output:

vzhouwenmsft_3-1715574791710.png

 

Finally you can add additional measures.

 

vzhouwenmsft_4-1715574921819.png

 

 

 

 

 

johnbasha33
Super User
Super User

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


Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.