Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.