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
Anonymous
Not applicable

Measure - Sum table by earliest date?

So I have a basic table. One column called Amount and one column called date. The earliest date in the table is 10/1/19. The sum of amount for 10/1/19 is 200. Why does the below measure not equal 200 but sums the entire table?

 

Test = CALCULATE(SUM('Table1'[Amt]),FILTER('Table1',MIN('Table1'[Date])))
1 ACCEPTED SOLUTION
Anonymous
Not applicable

That was easy. Needs to be as follows:

 

Test = CALCULATE(SUM('Table1'[Amt]),FILTER('Table1','Table1'[Date]=MIN('Table1'[Date])))

 

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

That was easy. Needs to be as follows:

 

Test = CALCULATE(SUM('Table1'[Amt]),FILTER('Table1','Table1'[Date]=MIN('Table1'[Date])))

 

 

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.