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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Eboneigh
Frequent Visitor

Creating columns from summarized data in other tables

I have two datasets. One is enrollment information that states whether students that were enrolled in the fall semester are enrolled in the spring. The second lists all of the financial aid that students received each semester for the last ten years. Each type of award has its own line for each student and term. For example, there would be four lines if a student received both merit scholarships and loans in both Fall 2022 and Spring 2022.  Student ID's are being used to connect the two datasets. What I want is to create a column in the dataset with enrollment information that states whether or not a student was a merit scholarships recipient in the Fall semester. I am struggling to figure out how to 1) create a column using data from a different dataset, and 2) pull the correct information into the column where there might be multiple rows per student and term.

3 REPLIES 3
Eboneigh
Frequent Visitor

I figured out that I can concatenate student ID and term and use that variable to match the datasets, so the pairing by student ID AND term isn't really necessary to solve this. The below tables show what I'm trying to do. I need the info from Table 1 to be summarized into Table 2. This is what I'm going for:

 

Table 1

StudentAward
A1
A2
A3
B2
B4
C1
C2
C3
C4

 

Table 2

StudentReceived Award 1?
AYes
BNo
CYes

Hi,

Drag Student to the row section of the visual.  Write this measure and drag it to the visual

Received award 1? = if(calculate(countrows(Data),Data[Award]=1)>0,"Yes","No")

i have assumed that the data type in the award column is numeric.  If not, then change 1 to "1" in the measure shared above.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ashish_Mathur
Super User
Super User

Hi,

Share some data (in a format that can be pasted in an MS Excel file) and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.