Forum Discussion
Slicers Not Filtering?
- Anonymous7 years ago
In some of the measures you are checking to see if should have a value, just need to change that from 0 to BLANK()
Contribution Margin Per Case = IF( SUM('Raw Data'[Volume]) = blank(), BLANK(), DIVIDE( SUM('Raw Data'[Contribution Margin]), SUM('Raw Data'[Volume]), BLANK() ) ) Net TGP Per Case = IF( SUM('Raw Data'[Volume]) <= 0, BLANK(), DIVIDE( SUM('Raw Data'[Net TGP]), SUM('Raw Data'[Volume]), BLANK() ) ) Contribution Margin Rate = IF( SUM('Raw Data'[Net Sales]) <= 0, BLANK(), DIVIDE( SUM('Raw Data'[Contribution Margin]), SUM('Raw Data'[Net Sales]), BLANK() ) )
Any chance you can upload some sample data? Onedrive work well
Hi! You should be able to download the PBIX file from here
- Anonymous7 years agoNot applicable
In some of the measures you are checking to see if should have a value, just need to change that from 0 to BLANK()
Contribution Margin Per Case = IF( SUM('Raw Data'[Volume]) = blank(), BLANK(), DIVIDE( SUM('Raw Data'[Contribution Margin]), SUM('Raw Data'[Volume]), BLANK() ) ) Net TGP Per Case = IF( SUM('Raw Data'[Volume]) <= 0, BLANK(), DIVIDE( SUM('Raw Data'[Net TGP]), SUM('Raw Data'[Volume]), BLANK() ) ) Contribution Margin Rate = IF( SUM('Raw Data'[Net Sales]) <= 0, BLANK(), DIVIDE( SUM('Raw Data'[Contribution Margin]), SUM('Raw Data'[Net Sales]), BLANK() ) )- littlemojopuppy7 years agoCommunity Champion
BOOM! Thank you!!!
I feel kind of dumb for not checking those... :smileyfrustrated:
- littlemojopuppy7 years agoCommunity Champion
So...I was reluctant to ask earlier why was everything still showing up despite the slicer filtering. But I didn't want to seem even more dumb. After thinking about it, I'm going to answer my own unasked question so I feel slightly less dumb: it's because the measure was actually producing a value (maybe not necessarily a valid value, but still a value). And because there was a value it was going to show up.
Thanks again for your help!