I have a measure to find the missing lectures by a student in Card Visual. I want to Lookup the value from measure output and search the related content in other dimension tables and display it via other measure.
Missing Lectures =
VAR classlectures =
FILTER (
ALL ( Course[Lecture Index] ),
NOT Course[Lecture Index] IN VALUES ( Attendance[Lecture Index] )
)
RETURN
CONCATENATEX ( classlectures, [Lecture Index], "-")
The output visual is
Requirement: I have related lecture contents in lookup table. I want to show the related course contents for these missing lectures seamlessly, preferably, by a measure.
After, it might be possible to find the judgment that why student got less marks due to missing concepts (absence in class lectures).
Due to various interactions in file, it is hard to make it as âsample fileâ.
I try to layout the issue.
1- When I select the any roll Number from slicer, the measures give us these information.
2- I found the information about student that in which lectures, he remained absent. You may see the information from âMissing Lecturesâ. In this visual you may see (4-12-15).
3- From it, I want to display the messages that this student could not grab the course contents of Lecture#04, 12, 15.
4- You may see the contents as below
5- I wish to display all the missing lectures contents via measure.
6- Further, Course Table and Attendance table are connected via Many to Many relationship.
The connection was made through Lecture Index key.
7- This ability can provide me the facility to track down the student weakness due to his/her absence in the class.
The major bottleneck is to retrieve the information from âMissing Lecturesâ and then map it to lecture contents via another âDAX Measureâ. Perhaps, it might give a clarity.
I think youâre pretty close to solving this yourselfâŚ
IMO you would need to do some restructuring to this table if you want to return itâs values. Just repeat the data in the first 3 columns for all subsequent rows. It looks like you already have the key in the 1st column.
Once that is done you can use a similar technique as the Missing Lectures measure but instead of concatenating, just return the Missing Lecture IDâs values in the first VAR within your measure.
In a second VAR use this to filter the Course Contents table with all matching IDâs and concatenate them.
Not to state the obvious but you are comparing Course[Lecture Index] with Course[Course key] that doesnât seem right. Also does the Lecture Index in this table have a value for each row in your model?
Perhaps you can use the INTERSECT to keep what is present in both tables before the CONCATENATEX
Thanks. Itâs really amazing.
My secret blunder was that I didnât remove the relationship between Attendance and Course. I think with âINâ, I have to care about it. Now, There is no relationship between these two tables.
I will try to do some formatting.
Further, If I want to display Chapter No then should I introduce the new VAR for Distinct Values, in virtual table, or there is any other appropriate way.