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

AÑADIR COLUMNA DIVIDE-SUM-FILTER

Hola a todos,

Quiero agregar columna de presupuesto mensual calcular desde el filtro de presupuesto anual con varias filas mismo categeory prduct que son los mismos con el número de meses.

Usé follwing dax para agregar columna que no está funcionando.

Previsión mensual ?DIVIDE(SUM(Sales[Budget]),DISTINCTCOUNT(Sales[Brand]))
Gracias de antemano.
SweZin
5 REPLIES 5
v-shex-msft
Community Support
Community Support

Hola @SWEZIN,

Proporcione algunos datos ficticios con una estructura de datos similar y los resultados esperados para ayudarnos a aclarar sus requisitos y probar la fórmula de codificación en él.

Cómo obtener respuestas a su pregunta rápidamente

saludos

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Mariusz
Community Champion
Community Champion

Hola @SWEZIN

Tratar.

Monthly forecast = 
CALCULATE(
    DIVIDE(
        SUM( Sales[Budget] ),
        DISTINCTCOUNT(Sales[Brand] )
    )
)

Saludos
Mariusz

Si este post ayuda, entonces considere aceptarlo como la solución.

Por favor, siéntase libre de conectarse conmigo.
Linkedin

Anonymous
Not applicable

Hola @Mariusz ,

No hay ningún error, pero los datos son incorrectos.

He cambiado como siguió y hay error.

Previsión mensual ?
CALCULATE(
DIVIDE(
SUM(Ventas[Presupuesto),
COUNT(
Ventas[Mes]),
ALLEXCEPT(
Ventas,Ventas[Marca])
)
)

Saludos

SweZin

Hola @SWEZIN

El error es el resultado de que ALLSELECTED se agrega como 3 argumentos de DIVIDE y debe estar en CALCULATE, intente esto.

Monthly forecast = 
CALCULATE(
    DIVIDE(
        SUM( Sales[Budget] ),
        COUNT( Sales[Month] )
    ),
    ALLEXCEPT( Sales, Sales[Brand] )
)

Saludos
Mariusz

Si este post ayuda, entonces considere aceptarlo como la solución.

Por favor, siéntase libre de conectarse conmigo.
Linkedin

@SWEZIN

¿Estás creando una medida? Tal vez puedas intentarlo

Previsión mensual ?

DIVIDE(CALCULATE(SUM(Sales[Budget,ALLEXCEPT(Sales,Sales[Brand])),DISTINCTCOUNT(Sales[Month] ))





Did I answer your question? Mark my post as a solution!

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.