Forum Discussion
Nandu_3033
2 years agoRegular Visitor
Remove 0 values
I want to filter out rows where all the selected columns have a value of 0. If even one of the selected columns has a non-zero value, the row should be displayed. also for eg if i just rem...
- 2 years agothis is the answer
Visual_Filter =VAR __SelectedValues =SELECTCOLUMNS (SUMMARIZE ('Values','Values'[Parameter],'Values'[Parameter Fields]),"Parameter", 'Values'[Parameter])VAR NonZeroCheck =IF(SUMX(__SelectedValues,SWITCH([Parameter],"Cost", IF([Cost] <> 0, 1, 0),0 // Default if no match)) > 0, 1, 0)RETURN NonZeroCheck
mark_endicott
2 years agoSuper User
Nandu_3033 - Best way to manage this is to create a measure along the lines of:
SUMX( Table,
Column1 + Column2 + Column3 + Column4 + Column5 )
Then add the measure to the "Visual level filters" and set to "Is not blank"
If this works for you, please accept as the solution, it helps with visibility for others when searching.