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
th340385
Helper I
Helper I

Nueva columna

Hola - Actualmente tengo una tabla de plan de cuentas que incluye la descripción del resumen del estado financiero en la parte inferior de la misma tabla (vea la captura de pantalla a continuación). Estoy tratando de incluir una nueva columna (azul) que incluya la descripción del informe financiero para cada cuenta. Cualquier orientación sobre cómo lograr esto sería apreciada!

Cuenta #DescripciónRango totalNew Column Expectation
100000Efectivo 1 • Total de efectivo y equivalentes en efectivo
100001Efectivo 2 • Total de efectivo y equivalentes en efectivo
100002Efectivo 3 • Total de efectivo y equivalentes en efectivo
193000.1Tierra • Total de Activos Fijos
193000.2Mejoras en la tierra • Total de Activos Fijos
193000.25Accum. Depr. - Mejoras en la tierra • Total de Activos Fijos
193000.3Edificio • Total de Activos Fijos
193000.35Accum. Depr. - Edificios • Total de Activos Fijos
100999Total efectivo y equivalentes en efectivo099999.000..100999.000
196999Total de Activos Fijos193000.000..196999.000
1 ACCEPTED SOLUTION
v-lionel-msft
Community Support
Community Support

Hola @th340385 ,

1. Dividir la columna [Rango total]

ff2.PNG

Entonces puedes conseguir una mesa así.

ff3.PNG

2. Cree una tabla como esta.

Table = 
SUMMARIZE(
    FILTER(
        Sheet1,
        Sheet1[Totaling Range1] <> BLANK()
    ),
    [Account #], [Description], [Totaling Range1],[Totaling Range2]
)

ff4.PNG

3. Cree una medida como esta.

Measure 2 = 
VAR x = 
SWITCH(
    TRUE(),
    MAX(Sheet1[Account #]) >= MIN('Table'[Totaling Range1]) && MAX(Sheet1[Account #]) <= MIN('Table'[Totaling Range2]), MIN('Table'[Description]),
    MAX(Sheet1[Account #]) >= MAX('Table'[Totaling Range1]) && MAX(Sheet1[Account #]) <= MAX('Table'[Totaling Range2]), MAX('Table'[Description])
)
RETURN
IF(
    CONTAINSSTRING( MAX(Sheet1[Description]), "Total"),
    BLANK(),
    x
)

ff5.PNG

(Nota: No establezca una relación entre las dos tablas.)

Saludos
Lionel Chen

Si este post ayuda,entonces considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

View solution in original post

5 REPLIES 5
v-lionel-msft
Community Support
Community Support

Hola @th340385 ,

1. Dividir la columna [Rango total]

ff2.PNG

Entonces puedes conseguir una mesa así.

ff3.PNG

2. Cree una tabla como esta.

Table = 
SUMMARIZE(
    FILTER(
        Sheet1,
        Sheet1[Totaling Range1] <> BLANK()
    ),
    [Account #], [Description], [Totaling Range1],[Totaling Range2]
)

ff4.PNG

3. Cree una medida como esta.

Measure 2 = 
VAR x = 
SWITCH(
    TRUE(),
    MAX(Sheet1[Account #]) >= MIN('Table'[Totaling Range1]) && MAX(Sheet1[Account #]) <= MIN('Table'[Totaling Range2]), MIN('Table'[Description]),
    MAX(Sheet1[Account #]) >= MAX('Table'[Totaling Range1]) && MAX(Sheet1[Account #]) <= MAX('Table'[Totaling Range2]), MAX('Table'[Description])
)
RETURN
IF(
    CONTAINSSTRING( MAX(Sheet1[Description]), "Total"),
    BLANK(),
    x
)

ff5.PNG

(Nota: No establezca una relación entre las dos tablas.)

Saludos
Lionel Chen

Si este post ayuda,entonces considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

¿Puede dar un ejemplo?

jthomson
Solution Sage
Solution Sage

Sólo me parece una simple declaración si

¿Puede dar ejemplo?

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.