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
August 2022 update 768x460.jpg

Check it Out!

Click here to learn more about the August 2022 updates!

August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors