Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Problem statement: How do I achieve a summarised status for each student for their grades? These students all took Math and Science exams, their status for each subject is shown in the first table. The first table is formed by a connection of 2 separate tables, of which the status has a unique identifier of status_id (1=pass, 2=fail)
I want to create a summary of each student and their overall status seen from the second table, such that the student name will become the unique identifier. The overall status is achieved such that if the student does not pass BOTH subjects, he or she will have a Fail grade. How can I achieve this, can someone explain to me the logic of the dax measures please, thank you.
First_Table
Second_Table
#DAX measures #Entity-relationship diagram #ERD
Overall Status =
MIN ( First_Table[Status] )
Hi,
Drag name to the Table visual and write this measure
Measure = if(calculate(countrows(Data),Data[Status]="Pass")=2,"Pass,"Fail")
Hope this helps.
@SaraAkira , You can have in a column in the same table
New column =
var _fail = countx(filter(Table, [name] = earlier([name]) && [Status] = "Fail"), [Name])
return
if(isblank(_fail), "Pass", "Fail")
You can nor create a new table using summarize if needed
User | Count |
---|---|
83 | |
69 | |
68 | |
65 | |
54 |
User | Count |
---|---|
93 | |
93 | |
91 | |
76 | |
69 |