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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Vista visual de matriz

Hola, chicos

Necesito ayuda, por favor. A continuación se muestran 2 imágenes de matriz, sólo preguntándose ¿cómo podemos mostrar toda la información en una tabla visual? Básicamente, tengo cantidades en un cronograma para diferentes tipos de servicios (CT, RMN, Otros, EE.UU. y Rayos X). No está interesado en mostrar $ asociados con estos servicios a nivel individual, pero la división % de "Total"

Nick_Singh_0-1600437812115.png

2 ACCEPTED SOLUTIONS
Greg_Deckler
Super User
Super User

@Nick_Singh Bueno, una manera sería usar esto:

https://community.powerbi.com/t5/Quick-Measures-Gallery/The-New-Hotness-Custom-Matrix-Hierarchy/m-p/...

Necesitaría datos de origen para jugar para ser más específico. Me en respuestas. Por favor, consulte este post sobre cómo obtener su pregunta respondida rápidamente: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

Las partes más importantes son:
1. Datos de muestra como texto, utilice la herramienta de tabla en la barra de edición
2. Salida esperada de los datos de muestra
3. Explicación en palabras de cómo obtener de 1. a 2.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

Hola @Nick_Singh,

De hecho, no se puede lograr directamente en función de la estructura de tabla sin procesar y la característica de matriz. Para su requisito, creo que necesita crear una tabla con una categoría específica que incluya el valor de mes y servicio y la fórmula de medida de escritura para calcular.

Mesa:

Unioned = 
UNION (
    'Table',
    SUMMARIZE (
        'Table',
        'Table'[Name],
        [Month],
        "Service", [Month],
        "Amount", SUM ( 'Table'[Amount] )
    )
)

Medida:

Measure = 
VAR currService =
    SELECTEDVALUE ( 'Unioned'[Service] )
VAR currMonth =
    SELECTEDVALUE ( 'Unioned'[Month] )
RETURN
    IF (
        currService <> currMonth & "",
        DIVIDE (
            CALCULATE (
                SUM ( 'Unioned'[Amount] ),
                FILTER ( ALLSELECTED ( 'Unioned' ), [Service] <> [Month] & "" ),
                VALUES ( 'Unioned'[Name] ),
                VALUES ( Unioned[Service] )
            ),
            CALCULATE (
                SUM ( 'Unioned'[Amount] ),
                FILTER ( ALLSELECTED ( 'Unioned' ), [Service] <> [Month] & "" ),
                VALUES ( 'Unioned'[Name] )
            ),
            0
        ),
        SUM ( 'Unioned'[Amount] )
    )

20.png

saludos

Xiaoxin Sheng

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

View solution in original post

6 REPLIES 6
v-shex-msft
Community Support
Community Support

Hola @Nick_Singh,

Creo que puede escribir una fórmula para calcular el porcentaje de la fila actual y usarla en el campo de valor.

Measure =
DIVIDE (
    CALCULATE (
        SUM ( Table[Value] ),
        ALLSELECTED ( Table ),
        VALUES ( Table[Ref_Suburb] ),
        VALUES ( Table[services] )
    ),
    CALCULATE (
        SUM ( Table[Value] ),
        ALLSELECTED ( Table ),
        VALUES ( Table[Ref_Suburb] )
    ),
    -1
)

Si la fórmula anterior no ayuda, ¿puede compartir algunos datos ficticios para probar?

saludos

Xiaoxin Sheng

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

Hola @v-shex-msft

Gracias por ayudar con esta medida, sin embargo, no ha obtendo el resultado esperado. Básicamente, tengo una lista de clientes y el tipo de servicio que utilizan cada mes. Mientras que estoy tratando de averiguar cuál es el valor total de los servicios utilizados por cada mes del cliente en el mes, quería obtener una visión holística del tipo de servicios que utilizan (así que realmente no lo necesitan en un mes en base a mes, pero sobre el valor global) Ver a continuación el conjunto de entradas de muestra y salidas esperadas:

Atentamente

Nick

Entradas Salida esperada
Nombre Servicio Mes Cantidad

Nombre

Jul-2020 de agostoCambio de moM Ct Mri Ultrasonido Rayos X Otro
Catherine Eady CtJul-20129 Catherine Eady620370(250)24%23%16%11%26%
Catherine Eady MriJul-20123 Minerva Hultgren61980318412%0%57%18%13%
Catherine Eady UltrasonidoJul-20157 Chance Evens763- (763)15%23%18%23%21%
Catherine Eady Rayos XJul-20109 John Smith415- (415)44%25%30%0%0%
Catherine Eady OtroJul-20102 Mollie Stever542- (542)23%0%25%31%22%
Minerva Hultgren CtJul-20168
Minerva Hultgren UltrasonidoJul-20128
Minerva Hultgren Rayos XJul-20142
Minerva Hultgren OtroJul-20181
Chance Evens CtJul-20114
Chance Evens MriJul-20176
Chance Evens UltrasonidoJul-20137
Chance Evens Rayos XJul-20172
Chance Evens OtroJul-20164
John Smith CtJul-20184
John Smith MriJul-20105
John Smith UltrasonidoJul-20126
Mollie Stever CtJul-20124
Mollie Stever UltrasonidoJul-20134
Mollie Stever Rayos XJul-20166
Mollie Stever OtroJul-20118
Minerva Hultgren Ultrasonido20 de agosto683
Minerva Hultgren Rayos X20 de agosto120
Catherine Eady Otro20 de agosto160
Catherine Eady Ct20 de agosto108
Catherine Eady Mri20 de agosto102

Hola @Nick_Singh,

De hecho, no se puede lograr directamente en función de la estructura de tabla sin procesar y la característica de matriz. Para su requisito, creo que necesita crear una tabla con una categoría específica que incluya el valor de mes y servicio y la fórmula de medida de escritura para calcular.

Mesa:

Unioned = 
UNION (
    'Table',
    SUMMARIZE (
        'Table',
        'Table'[Name],
        [Month],
        "Service", [Month],
        "Amount", SUM ( 'Table'[Amount] )
    )
)

Medida:

Measure = 
VAR currService =
    SELECTEDVALUE ( 'Unioned'[Service] )
VAR currMonth =
    SELECTEDVALUE ( 'Unioned'[Month] )
RETURN
    IF (
        currService <> currMonth & "",
        DIVIDE (
            CALCULATE (
                SUM ( 'Unioned'[Amount] ),
                FILTER ( ALLSELECTED ( 'Unioned' ), [Service] <> [Month] & "" ),
                VALUES ( 'Unioned'[Name] ),
                VALUES ( Unioned[Service] )
            ),
            CALCULATE (
                SUM ( 'Unioned'[Amount] ),
                FILTER ( ALLSELECTED ( 'Unioned' ), [Service] <> [Month] & "" ),
                VALUES ( 'Unioned'[Name] )
            ),
            0
        ),
        SUM ( 'Unioned'[Amount] )
    )

20.png

saludos

Xiaoxin Sheng

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

@Nick_Singh

En la Matriz (Primera con Valores), en los Campos de Valor expanda los Valores y seleccione Mostrar valores como y seleccione Porcentaje al total general... o cualquier otro/ como se muestra a continuación

2020-09-18_224146.png2020-09-18_224059.png2020-09-18_224035.png




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Greg_Deckler
Super User
Super User

@Nick_Singh Bueno, una manera sería usar esto:

https://community.powerbi.com/t5/Quick-Measures-Gallery/The-New-Hotness-Custom-Matrix-Hierarchy/m-p/...

Necesitaría datos de origen para jugar para ser más específico. Me en respuestas. Por favor, consulte este post sobre cómo obtener su pregunta respondida rápidamente: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

Las partes más importantes son:
1. Datos de muestra como texto, utilice la herramienta de tabla en la barra de edición
2. Salida esperada de los datos de muestra
3. Explicación en palabras de cómo obtener de 1. a 2.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Gracias @Greg_Deckler , en primer lugar disculpas por no utilizar el mejor enfoque para publicar mi pregunta - error de novato! Lo que sugeriste tiene sentido absoluto.

En segundo lugar, he analizado su solución de jerarquía de matriz personalizada (el nuevo calor). Aborda más o menos lo que necesito; sin embargo, como usted ha señalado, es algo complejo. Voy a tratar de jugar y ver si puedo replicar para mi problema.

Gracias una vez más.

Atentamente

Nick

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors