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
moesteez
Helper I
Helper I

SUM quantity on a specific date

Im having a really hard time with a relaly basic measure but I cant figure out what Im doing wrong.

 

Ive got a quantity measure that sums a quantity column that works fine

I have a calendar table joined correctly to my sales table which works fine with any other measure and slicer

 

But Im trying to write a measure to just tell me the quantity for a specific date. Ive tried:

 

CALCULATE([Quantity], FILTER('Calendar', 'Calendar'[Date] = 07/07/2021))

and

CALCULATE([Quantity], FILTER('Calendar', 'Calendar'[Date] = DATE(07, 07, 2021) ) )
and

CALCULATE([Quantity], FILTER('Calendar', 'Calendar'[Date] >= 07/07/2021), FILTER('Calendar', 'Calendar'[Date] < 08/07/2021) )

and

CALCULATE([Quantity], FILTERS('Calendar'[Date]), 'Calendar'[Date] = 07/07/2021)

and

CALCULATE([Quantity], FILTERS('Calendar'[Date]), 'Calendar'[Date] >= 07/07/2021, 'Calendar'[Date] < 08/07/2021)

and

CALCULATE([Quantity], 'Calendar'[Date] = 07/07/2021)

 

Everything is returning me a blank value. Its such a simple measure but I cant figure out whats going on. Am I doing something wrong here?

 

Thanks for your help

1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@moesteez,

 

Try this measure. You had the argument order wrong in the DATE function.

 

Measure =
CALCULATE ( [Quantity], 'Calendar'[Date] = DATE ( 2021, 07, 07 ) )

 





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

Proud to be a Super User!




View solution in original post

1 REPLY 1
DataInsights
Super User
Super User

@moesteez,

 

Try this measure. You had the argument order wrong in the DATE function.

 

Measure =
CALCULATE ( [Quantity], 'Calendar'[Date] = DATE ( 2021, 07, 07 ) )

 





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

Proud to be a Super User!




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.