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
September Update

Check it Out!

Click here to learn more about the September 2022 updates!

Power BI Dev Camp Session 26

Check it Out!

Mark your calendars and join us on Thursday, September 29 at 11a PDT for a great session with Ted Pattison!

Top Solution Authors