justmeok
New Member
- Joined
- Jul 27, 2011
- Messages
- 42
- Office Version
- 365
- Platform
- Windows
This is a little hard to explain in the title subject line but I will try to provide a clear example below. I receive a csv file from our website and then I am writing a power query to extract the data required from this file. We only have two categories and any orders that are ONLY for the second category will to be kept and orders for the first category or a mix of both categories need to be removed completely. See example and under the heading action is the result I expect from the DAX formula.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Category[/TD]
[TD]Order Number[/TD]
[TD]Action Reqd[/TD]
[/TR]
[TR]
[TD]Category1[/TD]
[TD]1460[/TD]
[TD]Remove row[/TD]
[/TR]
[TR]
[TD]Category1[/TD]
[TD]1461[/TD]
[TD]Remove row[/TD]
[/TR]
[TR]
[TD]Category2[/TD]
[TD]1461[/TD]
[TD]Remove row[/TD]
[/TR]
[TR]
[TD]Category2[/TD]
[TD]1462[/TD]
[TD]Keep row[/TD]
[/TR]
[TR]
[TD]Category2[/TD]
[TD]1463[/TD]
[TD]Keep row[/TD]
[/TR]
[TR]
[TD]Category2[/TD]
[TD]1463[/TD]
[TD]Keep row[/TD]
[/TR]
[TR]
[TD]Category2[/TD]
[TD]1463[/TD]
[TD]Keep row[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thanks everyone hoping this is possible and one of you gurus can help
[TABLE="width: 500"]
<tbody>[TR]
[TD]Category[/TD]
[TD]Order Number[/TD]
[TD]Action Reqd[/TD]
[/TR]
[TR]
[TD]Category1[/TD]
[TD]1460[/TD]
[TD]Remove row[/TD]
[/TR]
[TR]
[TD]Category1[/TD]
[TD]1461[/TD]
[TD]Remove row[/TD]
[/TR]
[TR]
[TD]Category2[/TD]
[TD]1461[/TD]
[TD]Remove row[/TD]
[/TR]
[TR]
[TD]Category2[/TD]
[TD]1462[/TD]
[TD]Keep row[/TD]
[/TR]
[TR]
[TD]Category2[/TD]
[TD]1463[/TD]
[TD]Keep row[/TD]
[/TR]
[TR]
[TD]Category2[/TD]
[TD]1463[/TD]
[TD]Keep row[/TD]
[/TR]
[TR]
[TD]Category2[/TD]
[TD]1463[/TD]
[TD]Keep row[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thanks everyone hoping this is possible and one of you gurus can help