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
Craines
Helper II
Helper II

Return data in new column based on several criteria

Hi, I need to produce a table which identifies the type of information pack student applicants will receive, based on a variety of factors.

The current table looks as follows:

StudentCodeSubjectOfferAcceptance
Student1Maths01
Student1English00
Student1English10
Student1Geography10
Student2History10
Student2Science10
Student3Maths10
Student4Science01

 

The scenarios are:

Several applications for different subjects where an acceptance has been made (Student1)

Several applications where offers have been made to some or all (Student2)

Single application with an offer made (Student3)

Single application with an acceptance (Student4)

 

The final output should be as follows:

StudentCodeSubjectOfferAcceptancePack
Student1Maths01Maths
Student1English00Maths
Student1English10Maths
Student1Geography10Maths
Student2History10General
Student2Science10General
Student3Maths10Maths
Student4Science01Science

Several applications for different subjects where an acceptance has been made (Student1) - Pack for accepted subject delivered

Several applications where offers have been made to some or all (Student2) - "General" pack delivered

Single application with an offer made (Student3) - Pack for subject delivered

Single application with an acceptance (Student4) - Pack for subject delivered

 

Any help much appreciated!  Thanks in advance.

2 REPLIES 2
lbendlin
Super User
Super User

Can there ever be more than one acceptance per student?

No, only ever one acceptance per student

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.