Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

cómo calcular el porcentaje

Hola a todos

Necesito calcular la medida de percenatge, el mismo año tengo Y & N y recuento de encuestas.

Por ejemplo: Tome la semana libre como 202115 > si La bandera es "N" y luego 67/(52+67)

si Bandera á "Y" entonces 52(67+52)

Capture.JPG

regrad,

Navin_512

1 ACCEPTED SOLUTION
Pragati11
Super User
Super User

Hola @Navin512 ,

Cree las siguientes columnas calculadas:

FyWeekSurveyCount á CALCULATE(SUM(FYSurvey[Survey Count]), FILTER(ALLSELECTED(FYSurvey), FYSurvey[FY Week] á EARLIER(FYSurvey[FY Week])))
FYWeekFlagSurveyCount ? CALCULATE(SUM(FYSurvey[Survey Count]), FILTER(ALLSELECTED(FYSurvey), FYSurvey[FY Week] ? EARLIER(FYSurvey[FY Week]) && FYSurvey[Flag] ? EARLIER(FYSurvey[Flag]))
A continuación, cree una medida:
proportion: DIVIDE(SUM(FYSurvey[FYWeekFlagSurveyCount]), SUM(FYSurvey[FyWeekSurveyCount]), 0)
Convierta la medida anterior en PERCENTAGE en la ficha Modelado.
A continuación, mueva lo siguiente a la tabla visual, obtendrá algo como abajo:
percentage.png
Espero que esto ayude.
Gracias
Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Navin512, intenta como

divide(sum(Table[survey count]),calculate(sum(Table[survey count]),allexcept(Table,Table[FY Week]))

harshnathani
Community Champion
Community Champion

Hola @Navin512 ,

1.jpg

Columna ?

var _sumFY - CALCULATE(SUM('Table'[Survery Count]),ALLEXCEPT('Table','Table'[FY Week]))

var _a á IF ('Table'[Flag] 'N", 'Table'[Survery Count], DIVIDE('Table'[Survery Count],_sumFY))

devolución
_a
saludos
Harsh Nathani
¿He respondido a tu pregunta? ¡Marca mi puesto como una solución! Apreciar con un Kudos!! (Haga clic en el botón Pulgares arriba)
Pragati11
Super User
Super User

Hola @Navin512 ,

Cree las siguientes columnas calculadas:

FyWeekSurveyCount á CALCULATE(SUM(FYSurvey[Survey Count]), FILTER(ALLSELECTED(FYSurvey), FYSurvey[FY Week] á EARLIER(FYSurvey[FY Week])))
FYWeekFlagSurveyCount ? CALCULATE(SUM(FYSurvey[Survey Count]), FILTER(ALLSELECTED(FYSurvey), FYSurvey[FY Week] ? EARLIER(FYSurvey[FY Week]) && FYSurvey[Flag] ? EARLIER(FYSurvey[Flag]))
A continuación, cree una medida:
proportion: DIVIDE(SUM(FYSurvey[FYWeekFlagSurveyCount]), SUM(FYSurvey[FyWeekSurveyCount]), 0)
Convierta la medida anterior en PERCENTAGE en la ficha Modelado.
A continuación, mueva lo siguiente a la tabla visual, obtendrá algo como abajo:
percentage.png
Espero que esto ayude.
Gracias
Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.