cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
josanchez
Regular Visitor

Compare column value from one year to another for a specific user

I am trying to list all students that have been retained from one year to another. 

Idgradeyear
12352019
12352020
12362021

 

Any recommendations would be appreciated.

1 ACCEPTED SOLUTION
v-cgao-msft
Community Support
Community Support

Hi @josanchez ,

 

I create a sample.

vcgaomsft_0-1645083432869.png

Try this measure.

 

Years = 
IF(COUNTROWS('Table')>1,MAX('Table'[Year]))

 

The result should be like this.

vcgaomsft_1-1645084252002.png

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!

View solution in original post

3 REPLIES 3
v-cgao-msft
Community Support
Community Support

Hi @josanchez ,

 

I create a sample.

vcgaomsft_0-1645083432869.png

Try this measure.

 

Years = 
IF(COUNTROWS('Table')>1,MAX('Table'[Year]))

 

The result should be like this.

vcgaomsft_1-1645084252002.png

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!

josanchez
Regular Visitor

The out put I am looking is the following:

IDGradeyear
12352020

 

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.

VahidDM
Super User
Super User

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/

 

 

 

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors