Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello together,
I have two tables connected via "Serialnumber" in a one to many relationship. Now I want to create a calculated column in the one-table for the first (text) "Reason" by date from the many-table.
I tested out the RELATEDTABLE function but this results in an error. Can anyone help on this?
For example: There are 5 rows for this "Serialnumber" with possibily 5 different "Reason". I want to display the first "Reason" in the table on the "One"-side of the relationship. First means first date.
Thank you!!
Andreas
Solved! Go to Solution.
there are many ways to do it.
so what i have done, i have created a calc column in the second table where you have multiple reasons against same SI No and we have to find out the one which was the first recorded (min date)
we can create a below calc column this will sort the date and give the ranking within each reason
once you have the rank order colum, you can simply filter rank 1 and it will show the first reason agianst each SI No.
now from here, you can have multiple ways to show the reason
1. creating a new table using groupby
now you can use lookup function in the first table to pull reason from table3
below is the final output
i hope this can take you in the right direction. i am also attachting pbix file for help. thanks
Proud to be a Super User!
there are many ways to do it.
so what i have done, i have created a calc column in the second table where you have multiple reasons against same SI No and we have to find out the one which was the first recorded (min date)
we can create a below calc column this will sort the date and give the ranking within each reason
once you have the rank order colum, you can simply filter rank 1 and it will show the first reason agianst each SI No.
now from here, you can have multiple ways to show the reason
1. creating a new table using groupby
now you can use lookup function in the first table to pull reason from table3
below is the final output
i hope this can take you in the right direction. i am also attachting pbix file for help. thanks
Proud to be a Super User!