Forum Discussion
special slicer?
- Anonymous1 year ago
Hi Hugo999 , hello Idrissshatila, thank you for your prompt reply!
For your situation, please create an index column in table first, then create the measure as shown below:
FilterMeasure = VAR SelectedMonths = SELECTEDVALUE(PeriodSelection[NumMonths]) VAR MaxMonth =CALCULATE(MAX('Table'[Index]),ALLSELECTED('Table')) VAR MinMonth = MaxMonth - SelectedMonths + 1 RETURN IF(MAX('Table'[Index]) >= MinMonth && MAX('Table'[Index]) <= MaxMonth, 1, 0)Then filter the bar chart visual with measure=1:
Result for your reference:
Best regards,
Joyce
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
āā
Hello Hugo999 ,
yes, you use the default slicer but use the type of the slicer from the formatting settings to list.
hi
this does not take a custom amount of "months" into account. Very much assume, that some kind of "period selection" had to be set up, like:
- Anonymous1 year agoNot applicable
Hi Hugo999 , hello Idrissshatila, thank you for your prompt reply!
For your situation, please create an index column in table first, then create the measure as shown below:
FilterMeasure = VAR SelectedMonths = SELECTEDVALUE(PeriodSelection[NumMonths]) VAR MaxMonth =CALCULATE(MAX('Table'[Index]),ALLSELECTED('Table')) VAR MinMonth = MaxMonth - SelectedMonths + 1 RETURN IF(MAX('Table'[Index]) >= MinMonth && MAX('Table'[Index]) <= MaxMonth, 1, 0)Then filter the bar chart visual with measure=1:
Result for your reference:
Best regards,
Joyce
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
āā