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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
cottrera
Post Prodigy
Post Prodigy

DAX ALL not working

Hi

 

I have a simple model with a facts table and dates table.  My report page has 5 visuals and the page has a filter on it for the current month = true. For one of my visuals with displays a score measure over time (By month) I do not want this visual effected by the page filter. Therefore I created a DAXfunction using ALL('Calendar') which I thought would remove the current month = true filter from the results.

 

Avg Rating all months =
CALCULATE([Avg Rating]
     ,ALL('Calendar'))
 
But is has not worked and the visual still only displays the currect month.  Can you please advise what I am doing wrong?
thank you
Richard
1 ACCEPTED SOLUTION
NickolajJessen
Solution Sage
Solution Sage

I'm guessing it's due to the fact that you you have a measure instead of a column to decide CurrentMonth. 
Did you consider using a calculated column on the calendar table or using visual level filters on 4 of the visuals and not using the filter on the 5th visual?

View solution in original post

6 REPLIES 6
NickolajJessen
Solution Sage
Solution Sage

I'm guessing it's due to the fact that you you have a measure instead of a column to decide CurrentMonth. 
Did you consider using a calculated column on the calendar table or using visual level filters on 4 of the visuals and not using the filter on the 5th visual?

Hi NckolajJessen 

 

My CurrentMonth is a ciolumn i the dates table. I already have it set up with 4 of the visuals set as 'True' and the remainding one not using the filter.
I wanted to explore if there was a way to avoid adding 4 addtional filters to visuals as I am trying the keep the performace of the report good.

 

Regards

 

Richard

MahyarTF
Memorable Member
Memorable Member

Hi,

it is weird,

I try to create a sample data for my self and create a dax measure on it. it is work, would you please share your sample PBIX file to investigate :

MahyarTF_0-1660031156337.png

 

Mahyartf

Hi Mahya

 

Due to company policy I am unable to share files.  The model is very simple

cottrera_0-1660031813141.png



The only filters on the page are

cottrera_1-1660031925962.png

 

My key measure is 

Avg Rating = AVERAGE('LocalZ Feedback Files'[Rating])
 
And for the visual that I wish to ignore the Page Filter I am using this measure
Avg Rating all months =
CALCULATE([Avg Rating]
     ,ALL('Calendar'))
 
But have also tried
Avg Rating all months =
CALCULATE([Avg Rating]
     ,ALL())
 
Both these measures work find when added to a card visual. However I am trying to display this via a line chart , showning the months on an axis.
The result I was expecting is 
cottrera_2-1660032040352.png



But I am getting this

cottrera_3-1660032202851.png

 

 

Works fine in a card visual but not in a line chart.

 

RIchard

cottrera
Post Prodigy
Post Prodigy

Hi Amitchadak, thank you for your quick reponse. I tried 

Avg Rating all months =
CALCULATE([Avg Rating]
,ALL())

however the visual is still only showing the current month.

cottrera_0-1660030984914.png

 

 

regards

 

Richard



amitchandak
Super User
Super User

@cottrera , Try like

 

Avg Rating all months =
CALCULATE([Avg Rating]
,ALL())

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.