Forum Discussion
Mulitple Conditions (at row level)
Can you share sample data and sample output.
A simplified example of the source data would be (and the expected result in the last column)
RMA Order # Hdr Prob Code Single or Multiple
1234A T1 Multiple
1234A T2 Multiple
1234A T3 Multiple
3458A T1 Single
So, in this example, because RMA Order 1234A is listed three times, each with a different Header code, this Order would be defined as "Multiple".
Order 3458A only shows up once, with one Header code, and would be defined as Single.
Does that help?
- Anonymous6 years agoNot applicableSingle or Multiple Codes = IF(CALCULATE(COUNTROWS(Flu_RMAs), FILTER(Flu_RMAs, Flu_RMAs[RMA Order #] = EARLIER(Flu_RMAs[RMA Order #])),FILTER(Flu_RMAs, Flu_RMAs[Hdr Prob Code] <> EARLIER(Flu_RMAs[Hdr Prob Code]))) > 1, "Multiple", "Single")
- amitchandak6 years ago
Super User
Create a new column like. Add condition to filter
Flag = if( countX(filter(table,table[RMA Order #]=earlier(table[RMA Order #])),table[RMA Order #])>1,"Multiple","Single")
- Anonymous6 years agoNot applicable
Hi Ricky - Thanks for your help.... I get the red squiggly line error right at the very end....(see bolded text). It says it is an "unexpected parameter" error.
Single or Multiple Codes = IF(CALCULATE(COUNTROWS(Flu_RMAs), FILTER(Flu_RMAs, Flu_RMAs[RMA] = EARLIER(Flu_RMAs[RMA],FILTER(Flu_RMAs,Flu_RMAs[Hdr Prob Code] <> EARLIER(Flu_RMAs[Hdr Prob Code]))) > 1, "Multiple", "Single")
- Anonymous6 years agoNot applicable
Check the Data type of your column:
Column Tools --> Data Type: Text