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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
yaman123
Post Patron
Post Patron

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
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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