Forum Discussion
Anonymous
5 years agoNot applicable
Filter from 2 different columns
Hi Team, I need to create a filter from 2 different columns. I want a filter from Colum Active_Status and Inactive_Status. I need to give user a filter with Available and Not Active. IP Add...
- 5 years ago
If you only want Available and not active then create a column like this:
Status Check = SWITCH(TRUE(),
'Table'[Active_Status]="Available" && 'Table'[Inactive_Status]="Not Active","Available not active",blank())If you want Active, In Active and Available and In Active create a column like this:
Status Check = SWITCH(TRUE(),
'Table'[Active_Status]="Available" && 'Table'[Inactive_Status]="","Available",
'Table'[Active_Status]="" && 'Table'[Inactive_Status]="Not Active","Not Active",
'Table'[Active_Status]="Available" && 'Table'[Inactive_Status]="Not Active","Available not active")
jaideepnema
Solution Sage
5 years agoAnonymous
change the DAX as given below:
Status Check = SWITCH(TRUE(),
'Table'[Active_Status]="Available" && 'Table'[Inactive_Status]="","Available",
'Table'[Active_Status]="" && 'Table'[Inactive_Status]="Not Active","Not Active",
BLANK())
Please accept this a solution if your question is answered
Appreciate a kudos !!
- Anonymous5 years agoNot applicable
I want Available and Not active, if I chane the DAX for
Status Check = SWITCH(TRUE(),
'Table'[Active_Status]="Available" && 'Table'[Inactive_Status]="","Available",
'Table'[Active_Status]="" && 'Table'[Inactive_Status]="Not Active","Not Active",
BLANK()).Irrespective of anything in Active_Status Column it should only pick Inactive.
There may be case where it has 2 status in Each colum but I want only Available and Not_Active
- jaideepnema5 years ago
Solution Sage
If you only want Available and not active then create a column like this:
Status Check = SWITCH(TRUE(),
'Table'[Active_Status]="Available" && 'Table'[Inactive_Status]="Not Active","Available not active",blank())If you want Active, In Active and Available and In Active create a column like this:
Status Check = SWITCH(TRUE(),
'Table'[Active_Status]="Available" && 'Table'[Inactive_Status]="","Available",
'Table'[Active_Status]="" && 'Table'[Inactive_Status]="Not Active","Not Active",
'Table'[Active_Status]="Available" && 'Table'[Inactive_Status]="Not Active","Available not active")