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
Syndicate_Admin
Administrator
Administrator

Ventas en porcentaje

Hola a todos,

Tengo una matriz de cada grupo de productos principal. Si hace clic en el grupo de productos principal, se abrirá la matriz y aparecerán los elementos.
Ya está la cantidad y las ventas.

Ahora quiero crear una medida que calcule las ventas en porcentaje de las ventas totales.

pbi_new.PNG

¿Tienes alguna idea?

Gracias a todos por sus respuestas

--

azaterol

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

@azaterol Ajusté el código a su modelo:

% Parent 2 = 
VAR Numerator = SUM('Table'[Sales])
VAR Denominator =
    SWITCH (
        TRUE(),
        ISINSCOPE ( 'Table'[Items + number] ), CALCULATE ( SUM('Table'[Sales]), ALLSELECTED('Table'), VALUES('Table'[Main product group]) ),
        ISINSCOPE ( 'Table'[Main product group] ), CALCULATE ( SUM('Table'[Sales]), ALLSELECTED('Table')),
        Numerator
    )
VAR Result =
    DIVIDE (
        Numerator,
        Denominator
    )
RETURN
    Result


2022-05-09 22_36_04-Power BI Workspace Datasets License Permissions - Microsoft Power BI Community.png

Informe de presentación – Contoso by SpartaBI


SpartaBI_3-1652115470761.png SpartaBI_1-1652115142093.png SpartaBI_2-1652115154505.png

Full-Logo11.png

Syndicate_Admin
Administrator
Administrator

Agregue nuevamente su medidor de ventas el campo de ventas y haga clic fiel en el panel de visualización

JamesFr06_0-1652517869557.png

y mostrar como porcentaje de taotal y debería funcionar

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.