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.
Hemos implementado una forma que mide el nivel de estrés, riesgo psicosocial y algunos otros
y tengo que hacer algunos gráficos con esa información
pero me estoy quedando atascado con algunas fórmulas
tenemos 4 posibles respuestas para cada pregunta (Siempre, Por lo general, a veces, Raramente y Nunca) cada una tiene un valor (0,1,2,3,4 en el mismo orden) y necesito sumergirlas en grupos y esos grupos ino antoher grupo
algo así
el campo "ITEM" es el número de cada pregunta
ej. "Ambiente de Trabajo" portada de la pregunta 1 a 5, y "Condiciones peligrosas" son la pregunta 1 y 3
Así que necesito contar cuántas veces por preguntas aparece el número 0
los tiempos que 1 aparece, etc.
Pregunta 1 ------------- Veces
4 14
3 3
1 3
2 0
así que entonces no puedo sumar el resultado y crear una nueva columna para "Condiciones del trabajo" y obtener el total
es realmente confuso
toda la tabla está en este enlace
NOM-035
Espero que puedas ayudarme
Solved! Go to Solution.
Hola @EC3 ,
¿Qué te parece esto:
let
Source = Excel.Workbook(File.Contents("D:\Power BI\Temp Testing Case\Calculate values from a form.xlsx"), null, true),
Sheet1_Sheet = Source{[Item="Sheet1",Kind="Sheet"]}[Data],
#"Promoted Headers" = Table.PromoteHeaders(Sheet1_Sheet, [PromoteAllScalars=true]),
#"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"Categoría", type text}, {"Dominio", type text}, {"Dimensión", type text}, {"Ítem", type any}}),
#"Filled Down" = Table.FillDown(#"Changed Type",{"Categoría", "Dominio"}),
#"Changed Type1" = Table.TransformColumnTypes(#"Filled Down",{{"Ítem", type text}}),
#"Split Column by Delimiter" = Table.ExpandListColumn(Table.TransformColumns(#"Changed Type1", {{"Ítem", Splitter.SplitTextByDelimiter(",", QuoteStyle.Csv), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "Ítem"),
#"Changed Type2" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"Ítem", Int64.Type}})
in
#"Changed Type2"
Además, si no implica devolver dos "1" en "11", puede hacer referencia a esta publicación: función DAX para buscar varios valores en cadenas y contar el número de veces que se pr...
Saludos
Icey
Si este post ayuda,entonces considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.
Hola @EC3 ,
¿Qué te parece esto:
let
Source = Excel.Workbook(File.Contents("D:\Power BI\Temp Testing Case\Calculate values from a form.xlsx"), null, true),
Sheet1_Sheet = Source{[Item="Sheet1",Kind="Sheet"]}[Data],
#"Promoted Headers" = Table.PromoteHeaders(Sheet1_Sheet, [PromoteAllScalars=true]),
#"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"Categoría", type text}, {"Dominio", type text}, {"Dimensión", type text}, {"Ítem", type any}}),
#"Filled Down" = Table.FillDown(#"Changed Type",{"Categoría", "Dominio"}),
#"Changed Type1" = Table.TransformColumnTypes(#"Filled Down",{{"Ítem", type text}}),
#"Split Column by Delimiter" = Table.ExpandListColumn(Table.TransformColumns(#"Changed Type1", {{"Ítem", Splitter.SplitTextByDelimiter(",", QuoteStyle.Csv), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "Ítem"),
#"Changed Type2" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"Ítem", Int64.Type}})
in
#"Changed Type2"
Además, si no implica devolver dos "1" en "11", puede hacer referencia a esta publicación: función DAX para buscar varios valores en cadenas y contar el número de veces que se pr...
Saludos
Icey
Si este post ayuda,entonces considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
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 |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |