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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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