Forum Discussion
Remove column based on condition
- 4 years ago
Hi chratnaa5 ,
First select the Customer_Num and Customer_Name, then unpivot other columns.
If you have a requirement for the order between columns in the matrix, you can add that custom column to sort the Attribute column.
= if [Attribute] = "Opted" then 11 else if [Attribute] = "NotApplicable" then 12 else if [Attribute] = "Not Opted" then 13 else Text.Select([Attribute], {"0".."9"})Then create and use the following measure.
Measure = CALCULATE ( MAX ( 'Table 2'[Value] ), FILTER ( 'Table 2', 'Table 2'[Value] = "N" || ( 'Table 2'[Attribute] = "Not Opted" && MAX ( 'Table 2'[Value] ) <> "0" ) ) )If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
WinnizIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi chratnaa5
Check out this file
https://drive.google.com/drive/folders/1rRwGYf8kYfdrj0nU0xhUoiSpFH7tVcF1?usp=sharing
- chratnaa54 years agoFrequent Visitor
aj1973 - I had given sample data. In live system I am having 60 + unique products, i mean the column names are different. I could not find end results.
However thank you very much for your time.
- v-kkf-msft4 years agoCommunity Support
Hi chratnaa5 ,
Has your problem been solved? If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz