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.
Hi community,
i want to add a column that states "consider" when the date is MAX(date) for a specific ID.
for the dates that are not MAX, it would state "dont consider"
Solved! Go to Solution.
Hi,
I am not sure how your table looks like, but could you please try the below calculated column formula?
Consider CC =
VAR _maxdate =
MAXX (
FILTER ( 'Project1', 'Project1'[ID] = EARLIER ( 'Project1'[ID] ) ),
'Project1'[Date]
)
RETURN
IF ( 'Project1'[Date] = _maxdate, "Consider", "Dont consider" )
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi @alevandenes ,
Step 1: Assuming your dataset is like below
Step 2: Create a calculated column
MaxDate =
IF (
CALCULATE ( MAX ( Sheet1[Date] ), ALLEXCEPT ( Sheet1, Sheet1[ID] ) ) = Sheet1[Date],
"Consider",
"Dont Consider"
)
Step 3: End
BR
Hi,
I am not sure how your table looks like, but could you please try the below calculated column formula?
Consider CC =
VAR _maxdate =
MAXX (
FILTER ( 'Project1', 'Project1'[ID] = EARLIER ( 'Project1'[ID] ) ),
'Project1'[Date]
)
RETURN
IF ( 'Project1'[Date] = _maxdate, "Consider", "Dont consider" )
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
97 | |
84 | |
67 | |
61 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |