Forum Discussion

jdwalker5's avatar
jdwalker5
Icon for Helper II rankHelper II
2 years ago
Solved

Calculation Based on Selected Value

I'm trying to create a measure that will return a rolling 4 week calculation based on the week the user selects from a slicer, but it is not returning the correct value.  It's only returning the valu...
  • jdwalker5's avatar
    jdwalker5
    2 years ago

    Thanks Anonymous.

     

    I ended up doing a workaround that uses a chiclet slicer, but what you provided would likely work.  What I did was use a normal slicer for the week then added a chiclet slicer for the epoch.  The chiclet slicer filters when a week is selected AND the value it filters to is a forced selection.  This forced selection is the key to why the workaround works.  I then turned off the interaction between my charts/tables and the week filter, and kept it on for the chiclet slicer.

     

    The users don't need to see the chiclet slicer, so I hid it behind one of the charts.  From their perspective, it looks like the week they're selecting is changing the values, which is what I wanted.

     

    One other thing, the "Slicer (new)" option native to PBI has an option to force selection, but I could not get it to work.  The chiclet slicer works just fine, though.

     

    Thanks!