I have a json filter in lightning record page for a Analytics dashboard. There are conditions where Code1__c will be NULL or Code2__c will be NULL . Is there any mechanism in JSON filter where we can put OR condition to use Code__1 if Code2__c is NULL and viceversa. Currently dashboard is taking both the fields which is failing the dashboard to display data. Any ideas....
{
'datasets':{
'OpportunityProducts':[
{
'fields':[
'Opportunity.Account.Code1__c'
],
'selection':[
'$Code1__c'
],
'filter':{
'operator':'matches',
'values':[
'$Code1__c'
]
}
},
{
'fields':[
'Opportunity.Account.Code2__c'
],
'selection':[
'$Code2__c'
],
'filter':{
'operator':'matches',
'values':[
'$Code2__c'
]
}
}
]
}
}