Filtering by a calculated measure involving multiple fields in Qlik Sense

喜你入骨 提交于 2019-11-29 15:40:21

If I'm understanding correctly, I believe this solution should work:

  1. Create a variable for your slider: new_measure_slider.
  2. Create a New Sheet Object -> Slider/Calendar Object.
  3. Configure your slider to control your new new_measure_slider variable.
  4. Create a calculated dimension in your chart substituting your 'New Measure' formula (the one you stated was an average of the three ranks). It should be a conditional like this: =if(aggr([your average formula here], Category, UniqueID) >= new_measure_slider, [Category], null()). Basically, compare your formula to the new_measure_slider variable. If true, use the Category (or UniqueID, whichever you need) as the dimension, if false, null().
  5. Check the 'Suppress When Value is Null' checkbox on your new dimension. This is key. This is what will actually filter your chart.
  6. In the chart properties, Presentation tab, click on your new calculated dimension and hit 'Hide Column'. We don't need to see this because we are using it only as a filter.

You can tell QV to ignore your filtering in the field Amount by adding "Amount=" to your set analysis.

I dont know how your average calculation looks like but maybe:

(aggr(rank(sum({<Amount=>} Score1)), Category, UniqueID) + 
aggr(rank(sum({<Amount=>} Score2)), Category, UniqueID) + 
aggr(rank(sum({<Amount=>} Score3)), Category, UniqueID)) / 3
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!