Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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 |
---|---|
84 | |
79 | |
71 | |
48 | |
43 |
User | Count |
---|---|
111 | |
54 | |
50 | |
40 | |
40 |