Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
¡Hola!
Estoy luchando para crear una fórmula que me puede dar un resultado de % cuando se filtra por cualquier combinación de otras tres columnas.
Aquí hay una maqueta de mi mesa:
Ubicación | Año Fiscal+Mes+Nombre | Sku | Valor |
País A | 2019-P08-Feb | Producto A | 0 |
País A | 2019-P09-Mar | Producto A | 3 |
País A | 2019-P10-Apr | Producto A | 22 |
País A | 2019-P11-Mayo | Producto A | 2 |
País A | 2019-P12-Jun | Producto A | 0 |
País A | 2020-P01-Jul | Producto A | 0 |
País A | 2020-P02-Aug | Producto A | 0 |
País A | 2020-P03-Sep | Producto A | 0 |
País A | 2020-P04-Oct | Producto A | 0 |
País A | 2020-P05-Nov | Producto A | 0 |
País A | 2020-P06-Dic | Producto A | 22 |
País A | 2020-P07-Jan | Producto A | 13 |
País A | 2020-P08-Feb | Producto A | 0 |
País A | 2020-P09-Mar | Producto A | 0 |
País B | 2019-P08-Feb | Producto A | 0 |
País B | 2019-P09-Mar | Producto A | 0 |
País B | 2019-P10-Apr | Producto A | 0 |
País B | 2019-P11-Mayo | Producto A | 0 |
País B | 2019-P12-Jun | Producto A | 0 |
País B | 2020-P01-Jul | Producto A | 0 |
País B | 2020-P02-Aug | Producto A | 0 |
País B | 2020-P03-Sep | Producto A | 0 |
País B | 2020-P04-Oct | Producto A | 0 |
País B | 2020-P05-Nov | Producto A | 0 |
País B | 2020-P06-Dic | Producto A | 1 |
País B | 2020-P07-Jan | Producto A | 0 |
País B | 2020-P08-Feb | Producto A | 0 |
País B | 2020-P09-Mar | Producto A | 0 |
País B | 2019-P08-Feb | Producto B | 2 |
País B | 2019-P09-Mar | Producto B | 4 |
País B | 2019-P10-Apr | Producto B | 7 |
País B | 2019-P11-Mayo | Producto B | 9 |
País B | 2019-P12-Jun | Producto B | 0 |
País B | 2020-P01-Jul | Producto B | 0 |
País B | 2020-P02-Aug | Producto B | 0 |
País B | 2020-P03-Sep | Producto B | 0 |
País B | 2020-P04-Oct | Producto B | 0 |
País B | 2020-P05-Nov | Producto B | 0 |
País B | 2020-P06-Dic | Producto B | 4 |
País B | 2020-P07-Jan | Producto B | 0 |
País B | 2020-P08-Feb | Producto B | 0 |
País B | 2020-P09-Mar | Producto B | 0 |
Y aquí hay algunos ejemplos de los resultados que quiero formular para mostrar:
País | Producto | Mes | Sin SKUs | Sin ubicaciones | No. Meses | No. de Valores > 0 | No. de los Valores 0 | Resultado %: |
A | A | todo | 1 | 1 | 14 | 5 | 14 | 36% |
B | A | todo | 1 | 1 | 14 | 1 | 14 | 7% |
A&B | A | todo | 1 | 2 | 28 | 5 | 23 | 18% |
B | A&B | todo | 2 | 1 | 28 | 6 | 22 | 21% |
A | A | 2019-P09-Mar | 1 | 1 | 1 | 1 | 0 | 100% |
A | A | 2019-P08-Feb & 2019-P09-Mar | 1 | 1 | 2 | 1 | 1 | 50% |
B | A&B | 2019-P10-Apr | 1 | 2 | 1 | 1 | 0 | 50% |
A&B | A | 2020-P06-Dic & 2020-P07-Jan | 1 | 2 | 2 | 3 | 1 | 75% |
A&B | A&B | 2020-P06-Dic & 2020-P07-Jan | 2 | 2 | 2 | 4 | 2 | 67% |
B | A&B | 2020-P06-Dic & 2020-P07-Jan | 2 | 1 | 2 | 2 | 2 | 50% |
todo | todo | todo | 2 | 2 | 42 | 11 | 31 | 26% |
Siento que esto debería ser simple, pero he probado algunas cosas diferentes y hasta ahora no hay suerte.
¿Necesito crear múltiples fórmulas e.. g uno para la ubicación y uno para el mes, o es posible hacer todo en uno?
¡Gracias!
Solved! Go to Solution.
Prueba una medida como esta
divide(sumx(table,if(Table[Value]>0,1,0)),count(Table[Value]]))
Prueba una medida como esta
divide(sumx(table,if(Table[Value]>0,1,0)),count(Table[Value]]))
Increíble, gracias!
Enchufado la fórmula y de repente mis gráficos están haciendo mucho más sentido 🙂
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
2 | |
1 | |
1 |