The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
I want to create a column changes the outcome of all the rows with the same value based on the outcome of one of the values. Example if 123 occurs 3 times once with the value "pass" then with value "on the edge" third time with the value "fail" then all three occurrences should be made "fail".
The priority should be
1)fail
2)on the edge
Please help its urgent. Thank you
3)pass
Solved! Go to Solution.
Hi,
Assuming there can only be Pass, Fail and Over the Edge in the Individual result column, write this calculated column formula
=if(CALCULATE(COUNTROWS(Data),FILTER(Data,Data[ID]=EARLIER(Data[ID])&&Data[Individual result]="fail"))>0,"Fail",if(CALCULATE(COUNTROWS(Data),FILTER(Data,Data[ID]=EARLIER(Data[ID])&&Data[Individual result]="on the edge"))>0,"On the Edge","Pass"))
Hope this helps.
Hi,
Assuming there can only be Pass, Fail and Over the Edge in the Individual result column, write this calculated column formula
=if(CALCULATE(COUNTROWS(Data),FILTER(Data,Data[ID]=EARLIER(Data[ID])&&Data[Individual result]="fail"))>0,"Fail",if(CALCULATE(COUNTROWS(Data),FILTER(Data,Data[ID]=EARLIER(Data[ID])&&Data[Individual result]="on the edge"))>0,"On the Edge","Pass"))
Hope this helps.
User | Count |
---|---|
60 | |
55 | |
53 | |
49 | |
30 |
User | Count |
---|---|
179 | |
87 | |
70 | |
48 | |
45 |