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

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

Reply
Anonymous
Not applicable

ALL results diverging in Excel compared to PowerBI

Hi All,

 

The All function is giving me divergent results from PowerBI to Excel. I want to calculate the annual budget regardless of the month selected on the slicer. To create this I have built the measure;

 

Measure ignoring month =calculate([Budget],ALL(CalendarMonth[Fiscal Month Name]))

 

Here are the results from PowerBI;

DataInterpreter_0-1599438257783.png

 

And here are the results from Excel;

 

 

DataInterpreter_1-1599438292548.png

 

 

It's working as expected in Excel, but what could be going on to produce the divergent results???? 

6 REPLIES 6
Anonymous
Not applicable

You are probably sorting Fiscal Month Name by another column in the underlying model table... This is why ALL is not enough when applied to the column. This is a known issue and if you want to know more about it, you should head to www.sqlbi.com and look for an article about problems with sorting.
Greg_Deckler
Community Champion
Community Champion

@Anonymous - Really hard to troubleshoot without sample data. Are you certain that you do not have something like a page level filter in your Power BI report? Page level filters and report level filters prefilter the data before it gets to DAX so even an ALL won't bring the data back once it is filtered by page and report level filters.



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

Understandable - re no data.

 

I think my observation is a quirk. @MattAllington  details what is happeing here;

 

https://exceleratorbi.com.au/the-all-function-in-dax/

 

Cheers

 

Mark 

amitchandak
Super User
Super User

@Anonymous , one of the two should work as measure

 

Measure ignoring month =calculate([Budget],ALL(CalendarMonth))
Measure ignoring month =calculate([Budget],removefilters(CalendarMonth[Fiscal Month Name]))

 

https://www.linkedin.com/pulse/five-recent-power-bi-functions-you-should-use-more-often-amit-chandak

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

Thanks @amitchandak , I tried allexcept fiscal year - whihc seems to hahve fixed my problem I still cant explain why there were different results though. 

@Anonymous , In that case, it should keep filter of year and remove everything else.

 

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
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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.