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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
ajdinbphys
Regular Visitor

Why do I get different results ?

Why doesn't ALL work for the date column when it's in the DATE format. The format of the column is the only thing that changes in the pictures below.

daxproblem1.PNGdaxproblem2.PNG

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

@ajdinbphys You can just use SUM('Sales Table'[Sales Amount]) or SUMX(ALL('Sales Table'),[Sales Amount]). Would be interested in seeing the PBIX if you could share it.



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

Not sure If I can upload a pbix file here but here is a google drive link to the file:
pbix file 

The idea behind this was to understand context transition which happens with CALCULATE. As I understand it, every row in the row context of the Sales table becomes a filter such that the SUM function only 'sees' one row of the table at a time. However, since calculate modifiers exist, you can overwrite this filter by using for example REMOVEFILTERS or ALL. And so I was playing with removing filters from individual columns and trying to predict the correct result for the summation until I notices this weird behaviour. 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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