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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Osmanakgunduz
Helper I
Helper I

ALL functions not working

Hello,

 

I have a simple DAX formula that includes ALL functions. It works with different tables but does not in a specific table. Can anyone help me? I want to make the month number filter inactive, but not working. I tried REMOVE FILTERS too but got the same result. Thanks.

(I added two screenshots that show different amount, the amount must be same and total amount of all months and years)

Yearly Gross Revenue = CALCULATE(SUM(GENERALJOURNALACCOUNTENTRY[ACCOUNTINGCURRENCYAMOUNT]);FILTER(GENERALJOURNALACCOUNTENTRY;GENERALJOURNALACCOUNTENTRY[POSTINGTYPE]=51);ALL('Date'))

2020-01-28_16h28_25.png2020-01-28_16h40_44g.png

 
 
 
2 ACCEPTED SOLUTIONS
JarroVGIT
Resident Rockstar
Resident Rockstar

Hi @Osmanakgunduz ,

I recently found out that ALL() does not remove filters that are set bij the Filter pane. It will only remove filters applied within queries and slicers. 

At the time I found this weird behaviour too, but to be honest the filterpane is there for your end users to interact with as well (or not, depends on your settings) and it would be strange that when you set a page or report filter, you can actually override that filter with DAX.

Hope this clarifies this issue for you!

 

Kind regards

Djerro123

-------------------------------

If this answered your question, please mark it as the Solution. This also helps others to find what they are looking for.

Keep those thumbs up coming! 🙂





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

Proud to be a Super User!




View solution in original post

Osmanakgunduz
Helper I
Helper I

Hello @JarroVGIT  again. 

 

I found that it is not about slicer or filter pane. It is about measure formula. I will try to explain in order to help others that meet with this issue.

 

if your formula contains a variable, it works. for example: 

All Revenues = CALCULATE([Revenue];ALL('Date'))
 
but if your formula is like:
All Revenues 2 = CALCULATE(SUM(GENERALJOURNALACCOUNTENTRY[ACCOUNTINGCURRENCYAMOUNT]);ALL('Date'))
It doesn't work. 
 
Best Regards.

View solution in original post

3 REPLIES 3
Osmanakgunduz
Helper I
Helper I

Hello @JarroVGIT  again. 

 

I found that it is not about slicer or filter pane. It is about measure formula. I will try to explain in order to help others that meet with this issue.

 

if your formula contains a variable, it works. for example: 

All Revenues = CALCULATE([Revenue];ALL('Date'))
 
but if your formula is like:
All Revenues 2 = CALCULATE(SUM(GENERALJOURNALACCOUNTENTRY[ACCOUNTINGCURRENCYAMOUNT]);ALL('Date'))
It doesn't work. 
 
Best Regards.
JarroVGIT
Resident Rockstar
Resident Rockstar

Hi @Osmanakgunduz ,

I recently found out that ALL() does not remove filters that are set bij the Filter pane. It will only remove filters applied within queries and slicers. 

At the time I found this weird behaviour too, but to be honest the filterpane is there for your end users to interact with as well (or not, depends on your settings) and it would be strange that when you set a page or report filter, you can actually override that filter with DAX.

Hope this clarifies this issue for you!

 

Kind regards

Djerro123

-------------------------------

If this answered your question, please mark it as the Solution. This also helps others to find what they are looking for.

Keep those thumbs up coming! 🙂





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

Proud to be a Super User!




Thank you @JarroVGIT  You are great!

Helpful resources

Announcements
Europe Fabric Conference

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.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.