Forum Discussion

pbi_dot_edu's avatar
pbi_dot_edu
Frequent Visitor
1 year ago
Solved

What-If Parameter with Dynamic Range

I have a requirement to build a single-value slicer that is responsive to filter context. I have achieved the single-value slicer through a what-if parameter, but it will not respond to filters. I st...
  • pbi_dot_edu's avatar
    9 months ago

    Hello, I wanted to let everyone know I found a solution to this problem by following the steps outlined in this post:

     

    https://www.sqlbi.com/articles/how-to-enable-the-single-value-option-in-a-power-bi-slicer/

     

    If one has used Tabular Editor, which I have, the solution is incredibly simple. All you have to do is edit an extended property on the numeric column you wish to use. Any numeric column can be used in a single-value slicer, and it will be responsive to filters as any other field would.

     

    For my solution, I had to add a few steps to (create multiplier values, crossjoin) to get a range of values. A bit of extra work, but the solution fits my needs perfectly.

     

    Hopefully this will help someone.