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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
yaman123
Post Partisan
Post Partisan

Values between two dates not working

Hi, 

 

I have the below measure to calculate the values from another table between two dates from a a different table - 

 

CALCULATE(
SUM('Weekly Adjustments'[CF$_VARIANCE_FIGURE]),
'Weekly Adjustments'[CF$_DATE_FROM] >= MIN('KPI Service Level Query'[DELIVERY_CONFIRMED_DATE]) && 'Weekly Adjustments'[CF$_DATE_TO] <= MAX('KPI Service Level Query'[DELIVERY_CONFIRMED_DATE]))
 
I have a date slicer set to between with the delivery confirmed date. If i select 03/06/2022 - 09/06/2022, the measure should give me the value of 444. If i select the dates between 27/05/2022 - 02/06/2022, the measure should give me the value of 528. Butr if i select dates between 27/05/2022 - 09/06/2022, the value should be 972. 
 
When i select the dates between 03/06/2022 - 09/06/2022, this is returning nothing, but there is a value between those dates in the table. 
 
Is there something i am doing in my measure? 
 
FYI - the two tables have no links and I dont have a date table. 
 
Thank
1 REPLY 1
Anonymous
Not applicable

HI @yaman123,

Did you mean to calculate with the multiple date fields? If that is the case, you can take a look at the following blog 'start date', 'end date' part:

Before You Post, Read This#start date, end date 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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