Forum Discussion

curtismob's avatar
curtismob
Helper IV
2 years ago

Create a slicer using a measure

Hello,

I have a matrix defined with the following columns as rows.
Options[Category Description],
Options[Option],
Community[_cCommunity with Number],
Options[_cPlan/Elev],
'Option Cost'[Cost Code]

And with the following measure for the value

'Option Cost'[_mOption Cost Code Count Diff]

I want to create a slicer using the 'Option Cost'[_mOption Cost Code Count Diff] measure, in order to filter out rows with values of zero.  I have created calculated tables in the past to do this, but not with multiple column/row levels.  Unfortunately, I can't make my pbix available. 

Looking for any suggestions/advice, thank you in advance.

curtismob 

6 Replies

  • Can you supply a fake set in Excel or something?

    Because we cant work with column names only

     

    • curtismob's avatar
      curtismob
      Helper IV

      Unfortunately not, the requirement is to be able to toggle on/off including all values or exclude where the 'Option Cost'[_mOption Cost Code Count Diff] measure is zero.

      • curtismob's avatar
        curtismob
        Helper IV

        This screen shot is from the link provided previously.

         

         

        Below is the calculated table used for the slicer, which has a relationship set with the Option table.

         

        _tCost Code Count Slicer =
        SUMMARIZE(
            Option,
            Option[Community],
            Option[Plan/Elev],
            "CountDiff", 'OptionCost'[_mCost Code Count Diff])