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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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