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
rsanyoto
Helper III
Helper III

Calcular varios valores basados en diferentes valores en DAX

Hola, chicos

Tengo una tabla que registra el total de registros de contacto para cada empleado en cada tipo de contacto. Tenemos tres tipos de contacto diferentes: llamada, correo electrónico e inmail.

Mi fórmula de dax limitada actual es:

Total contactregistrations- COUNT(Fact_Contact[contactmomentid])

Y trató de hacer una medida para hacer el cálculo basado en el tipo de contacto:
MedidasB
IF(SELECTEDVALUE(Dim_ContactType[Type]) - "Call",
IF(SELECTEDVALUE(Dim_ContactType[Type]) - "E-mail",
IF(SELECTEDVALUE(Dim_ContactType[Type]) - "InMail",
[Registro de contacto total])))
Mis preguntas es cómo hacer que el measureB más flexible para devolver si hay un registro de contacto con llamada, correo electrónico o correo electrónico y luego sumar los registros de contacto.
¿Alguna sugerencia?
¡Muchas gracias!

8 REPLIES 8
parry2k
Super User
Super User

@rsanyoto añadir la siguiente medida

New Measure = CALCULATE ([Total contactregistrations],
Dim_ContactType[Type]) IN { "Call",
"E-mail",
"InMail"}
)

Me gustaría elogiossi mi solución ayudara.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para dar a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!

Visítenos enhttps://perytus.com, su ventanilla única para proyectos/formación/consulta relacionadas con Power BI.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@parry2k Tu fórmula no coincide con mi resultado expexted:

Devuelve el siguiente resultado incorrecto:

wrongIncorrecto
Pero yo esperaba :

image 2.png

@rsanyoto a quién te refieres también? si varias personas están respondiendo, ¿se refieren / etiquetan por su nombre de lo contrario no está seguro de qué solución intentó?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@rsanyoto su requisito es totalmente diferente de la publicación original, también está manteniendo la fecha en el objeto visual y eso va a ser una medida totalmente diferente.

Explique en detalle lo que está tratando de lograr.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hola @parry2k ,

Mi requisito es devolver en un período un valor en el total de registros de contacto cuando en un registro de contacto se ha realizado por valor de llamada o correo electrónico o Correo electrónico.

@rsanyoto

New Measure = CALCULATE ([Total contactregistrations],
KEEPFILTERS(
Dim_ContactType[Type]) IN { "Call",
"E-mail",
"InMail"}
)
)

Me gustaría elogiossi mi solución ayudara.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para dar a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!

Visítenos enhttps://perytus.com, su ventanilla única para proyectos/formación/consulta relacionadas con Power BI.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Fowmy
Super User
Super User

@rsanyoto

Si entiendo su pregunta correctamente,

Cuando utilice su Measure " COUNT(Fact_Contact[contactmomentid])" y lo suelte en un objeto visual de tabla donde ya tenga Dim_ContactType[Tipo], debería darle automáticamente el resultado que está esperando a medida que funciona el contexto del filtro.

________________________

¿He respondido a tu pregunta? Marque este post como una solución, esto ayudará a otros!.

Acepto 🙂 KUDOS

YoutubeLinkedin

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

@Fowmy ¡Exactamente! alguna sugerencia?

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.