User Profile
jbaker15
Regular Visitor
Joined 6 years ago
User Widgets
Contributions
Re: Creación de un Histrograma que cambia en función de los filtros de usuario
Dado que las columnas calculadas no funcionan a través de filtros en tiempo real como sugieres, probé un enfoque diferente, pero todavía no tuve suerte. Esto es increíblemente frustrante porque estoy seguro de que hay una respuesta simple. Creé una tabla de cubos para dividirla en los grupos que quiero en el histograma: Luego creé una medida para poner los datos en las ubicaciones: Bins á CALCULATE(DISTINCTCOUNT('Instock L30 Days'[store_nbr]),(FILTER('Instock L30 Days',and(average('Instock L30 Days'[ris]) >- min(Buckets[Min]),average('Instock L30 Days'[ris]) <- MAX(Buckets[Max]))))) El problema con este método, es que promedia todo en un solo bucket y no divide las tiendas en cada bucket. Lo necesito para promediar cada tienda y luego distinto contarlo en los cubos basados en los filtros que están activos en el momento. Todavía perdido en éste.672Views0likes0CommentsRe: Creating a Histrogram that changes based on user filters
Since calculated columns do not work through filters in real time as you suggest, I tried a different approach but still no luck. This is incredibly frustrating because I am sure there is a simple answer. I created a Bucket Table to break it down into the groups I want on the Histogram: I then created a measure to put the data into the bins: Bins = CALCULATE(DISTINCTCOUNT('Instock L30 Days'[store_nbr]),(FILTER('Instock L30 Days',and(average('Instock L30 Days'[ris]) >= min(Buckets[Min]),average('Instock L30 Days'[ris]) <= MAX(Buckets[Max]))))) The trouble with this method, is it averages everything together into one bucket and does not break the stores out into each bucket. I need it to average each store and THEN distinct count it into the buckets based on whatever filters are active at the time. Still lost on this one.745Views0likes0CommentsRe: Creación de un Histrograma que cambia en función de los filtros de usuario
Hola, aprecio la repsonse. Cuando cambio Avg inStock a una medida ya no puedo ponerlo como una variable en Range1. Tampoco me permite poner una medida como un eje compartido en un gráfico de columnas apiladas. Tal vez esto no sea posible. ¿Alguna otra idea?672Views0likes0CommentsRe: Creating a Histrogram that changes based on user filters
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?749Views0likes0CommentsCreación de un Histrograma que cambia en función de los filtros de usuario
Tengo un problema interesante que he pasado más horas de las que me gustaría admitir tratando de averiguar. Tengo el siguiente ejemplo de conjunto de datos: 1) wm_week es el año/semana del punto de datos. 2) jj_sales_director es la categoría de director. Hay 3 de estos. 3) jj_sales_category es un nivel de categoría. Hay 20 categorías diferentes. 4) store_nbr es el número de la tienda. 5) ris es un % hasta 100%. He creado un histograma usando un gráfico de columnas apiladas a continuación: Estoy tratando de contar las distintas tiendas por RIS promedio en los cubos anteriores, que parece funcionar en lo anterior. El problema es que si filtro a la categoría o director quiero que el cambio el visual anterior para cubo el RIS promedio para esa combinación de filtro específica. RIght ahora simplemente no cambia los recuentos cuando el usuario filtra el panel. He hecho algunas columnas calculadas a continuación que son probablemente el problema, pero no he podido encontrar una manera de hacerlo: Promedia el instock y los filtros simplemente almacenar: (Columna calculada) Promedio de inStock ( InStock) Tienda VAR1 ' 'Instock L30 Days'[store_nbr] devolución CALCULAR ( PROMEDIO ( 'Instock L30 Days'[ris]), TODO ( 'Instock L30 Days' ), FILTRO ( 'Instock L30 Days', 'Instock L30 Days'[store_nbr] - store1) ) Crea los cubos: (Medida) Range1 - var temp- AVERAGE('Instock L30 Days'[Avg inStock]) return if(temp<-10,"0-10%",if(AND(temp>10,temp<-20),"10-20%",if(AND(AND(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<-994),"92-94%",if(AND(temp>94,temp<-96),"94-96%",if(AND(temp>96,temp<-98),"96-98%","98-100%"))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) Crea la columna que se usará en el objeto visual: (Columna calculada) Columna : 'Instock L30 Days'[Range1] A continuación se muestra cómo he colocado los datos en el gráfico de columnas. Cualquier ayuda sería apreciada.694Views0likes3CommentsCreating 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_sales_director is the director category. There are 3 of these. 3) jj_sales_category is a category level. There are 20 or so different categories. 4) store_nbr is the store number. 5) ris is a % up to 100%. I have created a histogram using a stacked column chart below: I am trying to count the distinct stores by average RIS in the above buckets, which appears to work in the above. The problem is if I filter to the category or director I want it to the change the above visual to bucket the average RIS for that specific filter combination. RIght now it just doesnt change the counts when the user filters the dashboard. I have made a few calculated columns below that are probably the issue but I have been unable to find a way to do it: Averages the instock and filters by just store: (Calculated Column) Avg inStock = VAR store1 = 'Instock L30 Days'[store_nbr] RETURN CALCULATE ( AVERAGE ( 'Instock L30 Days'[ris]), ALL ( 'Instock L30 Days' ), FILTER ( 'Instock L30 Days', 'Instock L30 Days'[store_nbr] = store1) ) Creates the buckets: (Measure) Range1 = var temp= AVERAGE('Instock L30 Days'[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%"))))))))))))) Creates the column to use in the visual: (Calculated Column) Column = 'Instock L30 Days'[Range1] Below is how I have placed the data in the column chart. Any help would be appreciated.805Views0likes3Comments
Data Privacy
Microsoft Fabric Community and Privacy
To learn more about how we manage your data, please review the Microsoft Fabric Community Data Privacy guide.