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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Moody__01
Helper I
Helper I

Get start date of open item

Hi, i work with items in progress and calendar date where i define the outstanding amount based on the selected date. In example : 

__Outstanding =
var _analysisdate = MAX('Calendar Table'[Date])
RETURN ABS(CALCULATE(SUM(Source[TransactionAmount]),
               Source[StartDate] <= _analysisdate,
              Source[EndDate]  >_analysisdate))
 
I would like to catch the min startdate for the items where outstanding is not equal to 0 in a card but it doesnt work. 
it will either send me back the min start date for the all the items in scope, or the min date of the items i do selct manually.
 Moody__01_1-1727941385859.png

 

 

is there a way to calculate the min start date for items where the measure [__Outstanding] is not 0 ? i tried several things but im running out of idea..

thanks for your help,Olivier

 

1 ACCEPTED SOLUTION
Kedar_Pande
Super User
Super User

DAX Measure

MinStartDateWithOutstanding =
CALCULATE(
MIN(Source[StartDate]),
FILTER(
Source,
ABS(SUM(Source[TransactionAmount])) > 0
)
)


it will display the minimum start date where the outstanding amount is not zero based on the selected date in your slicer.

View solution in original post

2 REPLIES 2
Moody__01
Helper I
Helper I

Hi Kedar, thanks for your prompt feedback. I have replace the below with the measure instead and it works well.

best, Olivier

Kedar_Pande
Super User
Super User

DAX Measure

MinStartDateWithOutstanding =
CALCULATE(
MIN(Source[StartDate]),
FILTER(
Source,
ABS(SUM(Source[TransactionAmount])) > 0
)
)


it will display the minimum start date where the outstanding amount is not zero based on the selected date in your slicer.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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