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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Finding Course Instructor name for two particular courses.

Hello Ashish 

 

I have an ORIGINAL TABLE where I have the following columns:

 

Student NameStudent IDCompleted CourseCourse Completion Course Instuctor Name
John1234MAT11Dr Yun
John1234MAT 31Dr Paul
John1234ECO 2 1Dr Man
Liz7896MAT11Dr Yun
Liz7896MAT 31Dr Paul
Liz7896ECO 2 1Dr Man

 

 

Then I created a "TABLE VISUAL" in Power BI to get the following table where I have used 

CONCATENATEX(VALUES....) function to show all the completed courses in 1 row. 
But I cannot get the right most two expected columns. 
 
Can anyone kindly assist to get the righmost two columns.
 
Thanks in advance for your time and consideration.
 
 
Student NameStudent IDCompleted coursesCourse Completion

(Expected Column)

Course Instructor name for MAT1

(Expected Column)

Course Instructor name for MAT 3

John123MAT 1, ECO2, MAT31Dr YunDr Paul
Adam1236MAT 11Dr YunCourse not found
Sara1125ECO 21Course not foundDr Xuan
Liz7896MAT31Course not foundDr Paul
 
3 REPLIES 3
Anonymous
Not applicable

wdx223_Daniel
Super User
Super User

Course Instructor name for MAT1 = COALESCE(CALCULATE(MAX(YourDataTable[Course Instuctor Name]),YourDataTable[Completed Course]="MAT1"),"Course not found")
Anonymous
Not applicable

Hello Daniel,

 

I used your code, selected the Datatable but I am only getting "Course not found" . I have checked the particular course is present in the course list yet its returning "Course not found". 

 

JJ91_0-1677826672280.png

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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