Hola, necesito ayuda para crear una columna estática para Valor de categoría total.
Solo necesito el valor de categoría total para 1 trimestre en todo mi conjunto de datos. (por ejemplo: Q2) y marque rest como valor 0.
Trimestre (texto) | Categoría (texto) | Subcategoría (Texto) | Valor (o) | Total de la categoría (o) |
Q1 | Fruta | 123 | $ 15.00 | 0 |
Q1 | Fruta | 12 | $ 20.00 | 0 |
Q1 | Vegetal | 156 | $ 10.00 | 0 |
Q1 | Vegetal | 152 | $ 20.00 | 0 |
Q2 | Vegetal | 2525 | $ 30.00 | $ 80.00 |
Q2 | Vegetal | 2512 | $ 50.00 | $ 80.00 |
Q2 | Fruta | 6433 | $ 10.00 | $ 10.00 |
Q3 | Vegetal | 347 | $ 20.00 | 0 |
Q3 | Vegetal | 3636 | $ 15.00 | 0 |
Q3 | Vegetal | 98 | $ 20.00 | 0 |
Q3 | Fruta | 6596 | $ 30.00 | 0 |
Q3 | Fruta | 272 | $ 40.00 | 0 |
Q4 | Vegetal | 13 | $ 50.00 | 0 |
Q4 | Fruta | 167 | $ 30.00 | 0 |
Q4 | Vegetal | 156 | $ 10.00 | 0 |
Gracias por las sugerencias!
Solved! Go to Solution.
@asalazarjr , Pruebe una nueva columna como
if([Quarter] á"Q2", sumx(filter(table,[Quarter] á earlier([Quarter]) && [Category] á earlier([Category])),[Value]))
Hola @asalazarjr ,
Por favor, háganos saber si las respuestas anteriores son útiles.
Si lo son, por favor acepte siempre las respuestas que tengan sentido como solución a su pregunta para que las personas que puedan tener la misma pregunta puedan obtener la solución directamente.
Si no, por favor dénos más detalles.
Saludos
Icey
@asalazarjr , Pruebe una nueva columna como
if([Quarter] á"Q2", sumx(filter(table,[Quarter] á earlier([Quarter]) && [Category] á earlier([Category])),[Value]))
Puede utilizar esta expresión de columna para hacer eso
Categoría Total ??
SI (
Tabla[Cuarto(texto)] - "Q2",
CALCULAR (
SUM ( Tabla[Valor(-)] ),
ALLEXCEPT (
Mesa
Tabla[Cuarto(texto)],
Tabla[Categoría(texto)]
)
),
0
)
saludos
palmadita
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.
User | Count |
---|---|
3 | |
1 | |
1 | |
1 | |
1 |