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,
I need to find the Cohort started month with the data look like this. The rank is the order of the month that the student is still studying with the center. I need to find the first month for each ENR ID (enrollment ID).
For example, in this case, I need all of the Cohort Started Month to be 2020-01-02 for this student.
I really need help with this. Thank you!!!
Solved! Go to Solution.
@Anonymous , Try a column like
new column =
minx(filter(table, [enr id] =earlier([enr id])),[Month])
Similar stuff has been discussed here
Hi, @Anonymous
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
Table:
You may create a calculated column or a measure as below.
Calculated column:
Cohort Started Month =
CALCULATE(
MIN('Table'[Month]),
FILTER(
ALL('Table'),
'Table'[ENR ID]=EARLIER('Table'[ENR ID])
)
)
Measure:
Cohort Started Month Measure =
CALCULATE(
MIN('Table'[Month]),
FILTER(
ALL('Table'),
'Table'[ENR ID]=SELECTEDVALUE('Table'[ENR ID])
)
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
Table:
You may create a calculated column or a measure as below.
Calculated column:
Cohort Started Month =
CALCULATE(
MIN('Table'[Month]),
FILTER(
ALL('Table'),
'Table'[ENR ID]=EARLIER('Table'[ENR ID])
)
)
Measure:
Cohort Started Month Measure =
CALCULATE(
MIN('Table'[Month]),
FILTER(
ALL('Table'),
'Table'[ENR ID]=SELECTEDVALUE('Table'[ENR ID])
)
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi guys,
Thank you so muchhh !!! They all worked perfectly 😍
@Anonymous , Try a column like
new column =
minx(filter(table, [enr id] =earlier([enr id])),[Month])
Similar stuff has been discussed here
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 |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |