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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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