Forum Discussion
Display zero instead of blank in matrix
Hi, I need your help to handle below scenario. I tried to apply the logic using lookup table, however the zero is displayed for all the values in lookup table.
Relationship Lookup(Column1)->Lookup(Lkp)
Calculated measure - #cnt=count(id)+0
Txn Lookup
Since ther matrix is based on lookup table, zero is displayed for all the lookup values(E-H). Isit possible to restrict rows if all the columns in matrix is zero(not to display). So that slicer by lookup shows only corresponding values in matirx. Right now it dispalys all the lkp values in rows irrespective of Txn values.
Thank you.
Hi aj1107,
I think below are you needed.
Source Tables:
Formula:
Analysis = SUMMARIZE(Lookup,[Lkp],"Open",SWITCH(LOOKUPVALUE(Txn[State],Txn[Name],[Lkp]),"Open",1,0),"Closed",SWITCH(LOOKUPVALUE(Txn[State],Txn[Name],[Lkp]),"Closed",1,0))
Regards,
Xiaoxin Sheng