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

Usar la condición en el recuento distinto y dividirlo

Tengo el requisito de que necesito dividir el recuento distinto de identificaciones cuyo salario es de <a 25000 dividido por un recuento distinto de Id'

valor-Recuento distinto de identificaciones cuyo salario es de <-25000/conteo distinto de id's.

value á calculate(distinctcount(rawdata[id]),rawdata[salary] <-25000 / distinctcount(rawdata[id])) .

Sin embargo, esto me está dando error.

Permítanme saber cualquier sugerencia para lograr esto en una sola fórmula.

¡¡Gracias!!

2 ACCEPTED SOLUTIONS
az38
Community Champion
Community Champion

Hola @adi121

Tratar

value = 
DIVIDE(
calculate(distinctcount(rawdata[id]), rawdata[salary] <= 25000) ,
calculate(distinctcount(rawdata[id]), ALL(rawdata))
) 

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

Anonymous
Not applicable

hola @az38 ,Gracias,

Está redondeando los valores como 18/21 a 0,85, pero muestra 1. ¿Cómo puedo mostrar el valor exacto??

¡¡Gracias!!

View solution in original post

3 REPLIES 3
az38
Community Champion
Community Champion

Hola @adi121

Tratar

value = 
DIVIDE(
calculate(distinctcount(rawdata[id]), rawdata[salary] <= 25000) ,
calculate(distinctcount(rawdata[id]), ALL(rawdata))
) 

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

hola @az38 ,Gracias,

Está redondeando los valores como 18/21 a 0,85, pero muestra 1. ¿Cómo puedo mostrar el valor exacto??

¡¡Gracias!!

az38
Community Champion
Community Champion

@adi121

elija su medida en el Panel de campos derecho y luego vaya a la cinta de opciones Herramientas de medida y establezca Los parámetros de posición decimal en 2

Снимок.PNG


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

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.