March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello! I am working with monthly portfolios of accounts and looking to track additions to the population based on the earliest report an account appears in. However, if an account appears in the first report in our database, I do not want a value to be returned (either 0, blank, or null is sufficient).
I have created a measure to calculate the Earliest Date with the following formula:
Here is my data set:
and my intended result in the Addition column would return as follows in order, so that I am able to count the number of additions in a period:
0
0
0
2/1/2022
2/1/2022
0
0
3/1/2022
Thank you for any assistance!
Solved! Go to Solution.
Hi @anonymous23 ,
Please have a try.
Create a measure.
Earliest Date =
VAR _mindate =
MINX ( ALL ( 'Table' ), 'Table'[first month] )
RETURN
IF (
MAX ( 'Table'[first month] ) = _mindate,
BLANK (),
MAX ( 'Table'[first month] )
)
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @anonymous23 ,
Please have a try.
Create a measure.
Earliest Date =
VAR _mindate =
MINX ( ALL ( 'Table' ), 'Table'[first month] )
RETURN
IF (
MAX ( 'Table'[first month] ) = _mindate,
BLANK (),
MAX ( 'Table'[first month] )
)
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @anonymous23,
could you try to write your calculated column like this:
addition =
VAR _firstMonth =
CALCULATE ( MIN ( 'Table'[first month] ), ALL ( 'Table' ) )
RETURN
IF ( 'Table'[first month] = _firstMonth, BLANK (), 'Table'[first month] )
Cheers,
Sturla
If this post helps, then please consider Accepting it as the solution. Kudos are nice too.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
132 | |
90 | |
88 | |
64 | |
58 |
User | Count |
---|---|
203 | |
141 | |
107 | |
73 | |
70 |