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
Arnoh
Helper III
Helper III

dax allselected

Hi,

 

I made a measure with allselected. Now i would like to exclude "one" filter apllied on this report page. 

 

Thanx for any help.

5 REPLIES 5
Arnoh
Helper III
Helper III

Hi,

This is my current dax measure

 

verschil_vorig jaar v2 = 
var cumulatiefvorigjaar =

CALCULATE(-SUM(zmutatie[bedrag]);
FILTER(ALLSELECTED(zmutatie);zmutatie[boekjaar]+1=max(zmutatie[boekjaar]) && 
zmutatie[regeltype]<>16&&zmutatie[Week_iso]<=MAX(zmutatie[Week_iso])))

return
([Cumulatiefzmutatie]-cumulatiefvorigjaar)/cumulatiefvorigjaar

 

I need te clear te applied filter on: ;  z_datum_tabel[jaar_selectie] 

Hi, @Arnoh 

 

Based on my research, you may try the following measure.

 

verschil_vorig jaar v2 =
VAR cumulatiefvorigjaar =
    CALCULATE (
        - SUM ( zmutatie[bedrag] );
        ALL ( 'z_datum_tabel'[jaar_selectie] );
        FILTER (
            ALLSELECTED ( zmutatie );
            zmutatie[boekjaar] + 1
                = MAX ( zmutatie[boekjaar] )
                && zmutatie[regeltype] <> 16
                && zmutatie[Week_iso] <= MAX ( zmutatie[Week_iso] )
        )
    )
RETURN
    ( [Cumulatiefzmutatie] - cumulatiefvorigjaar ) / cumulatiefvorigjaar

 

 

Best Regards

Allan

 

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

Hi Allen,

 

Thanx for your reaction. I did not solve the issue. 

I made an other function withe allexept but the disadvatage of it is that when i add another filter i need te adjust the measure as well.

 

Do you have any other suggestions.

 

Thanx

 

 

Greg_Deckler
Community Champion
Community Champion

Generally you do that with ALL, ALLEXCEPT or REMOVEFILTERS. Would help to see sample data and formula. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
amitchandak
Super User
Super User

@Arnoh 

You can use all(Table[ColumnName]) or removefilters

https://docs.microsoft.com/en-us/dax/removefilters-function-dax

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.