Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon'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.
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! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
216 | |
89 | |
82 | |
66 | |
57 |