Forum Discussion
jbaker15
6 years agoRegular Visitor
Creating a Histrogram that changes based on user filters
I have an interesting problem that I have spent more hours than i'd like to admit trying to figure out. I have the below data set example: 1) wm_week is the year/week of the data point. 2) jj_sa...
v-alq-msft
6 years agoCommunity Support
Hi, jbaker15
I'd like to suggest you modify the calculated column as measure. A measure will reflect the selection of the slicer in time, and the column is refreshed only after loading and clicking the Refresh button, and it cannot be timely interacted with other visual interact.
Please try to use the following measures.
Avg inStock =
VAR store1 =
SELECTEDVALUE ( 'Instock L30 Days'[store_nbr] )
RETURN
CALCULATE (
AVERAGE ( 'Instock L30 Days'[ris] ),
FILTER (
ALLSELECTED ( 'Instock L30 Days' ),
'Instock L30 Days'[store_nbr] = store1
)
)
Range1 = var temp= [Avg inStock] return
if(temp<=10,"0-10%",if(AND(temp>10,temp<=20),"10-20%",if(AND(temp>20,temp<=30),"20-30%",if(AND(temp>30,temp<=40),"30-40%",if(AND(temp>40,temp<=50),"40-50%",if(AND(temp>50,temp<=60),"50-60%",if(AND(temp>60,temp<=70),"60-70%",if(AND(temp>70,temp<=80),"70-80%",if(AND(temp>80,temp<=90),"80-90%",if(AND(temp>90,temp<=92),"90-92%",if(AND(temp>92,temp<=94),"92-94%",if(AND(temp>94,temp<=96),"94-96%",if(AND(temp>96,temp<=98),"96-98%","98-100%")))))))))))))
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- jbaker156 years agoRegular Visitor
Hello, I appreciate the repsonse. When I change Avg inStock to a measure I can no longer put it as a variable in Range1. It also wont allow me to put a measure in as a shared axis on a stacked column chart.
Maybe this isnt possible. Any other thoughts?