Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!View all the Fabric Data Days sessions on demand. View schedule
I am trying to list all students that have been retained from one year to another.
| Id | grade | year |
| 123 | 5 | 2019 |
| 123 | 5 | 2020 |
| 123 | 6 | 2021 |
Any recommendations would be appreciated.
Solved! Go to Solution.
Hi @josanchez ,
I create a sample.
Try this measure.
Years =
IF(COUNTROWS('Table')>1,MAX('Table'[Year]))
The result should be like this.
Attach the pbix file for reference. Hope it helps.
Best Regards,
Community Support Team_Gao
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
Hi @josanchez ,
I create a sample.
Try this measure.
Years =
IF(COUNTROWS('Table')>1,MAX('Table'[Year]))
The result should be like this.
Attach the pbix file for reference. Hope it helps.
Best Regards,
Community Support Team_Gao
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
The out put I am looking is the following:
| ID | Grade | year |
| 123 | 5 | 2020 |
Only output 1 record. I am trying to get a count of all students that were not promoted to the next grade level.
Thank Again for the assist.
HI @josanchez
Can you please add more details with the desired output that you are looking for?
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!