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
nkillia
Frequent Visitor

Issue using Date measure to filter a summing measure

I have created a Start Date measure to calculate the latest start date:

 

Start_Date.png

 

I am trying to use this date measure to filter data for a summing measure:

CALCULATE(
SUM(Data[Amount]),
FILTER(Data,Data[Date] >= [Start Date]))

 This measure is returning the Sum of the amount from all years.

CALCULATE(
SUM(Data[Amount]),
FILTER(Data,Data[Date] >=DATE(2019,1,1))
 
This version of the measure is returning the correct amount. 
 
Is there a way to filter the data using a Date measure?
 
 
 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @nkillia 
 
Modify your MAX_Date measure as below
 
MAX_Date = CALCULATE(MAX(TEST1[Date]),FILTER(all(TEST1),TEST1[Type]<>"B")).
 
 when we add "all" it takes your entire dataset irrespective of your filters.
PReviously we are simple checking with it with filters and it is evaluating  MAX Date for each row. 
 
 
Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar

If I resolve your problem Mark it as a solution and give kudos.

View solution in original post

10 REPLIES 10

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.