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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Syndicate_Admin
Administrator
Administrator

Necesita ayuda para crear el gráfico como se explica a continuación

Es necesario crear un gráfico que muestre LateBacklock y el mes a partir del mes siguiente con el año fiscal. Las cantidades de registro atrasado son la cantidad que son la cantidad de meses anteriores y la cantidad del mes actual. a continuación se muestra el gráfico como referencia y mi mes fiscal comienza de octubre a septiembre. por lo tanto, para el año fiscal 2025, el mes comienza en octubre en lugar de enero, febrero, etc.

Sanmaya1_0-1719142215259.png

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

@lbendlin , gracias por su preocupación por este caso. Intenté crear yo mismo una muestra de datos basada en los requisitos del usuario e implementé el resultado. Por favor, compruebe si hay algo que se pueda mejorar. Aquí está mi solución:

Hola @Sanmaya1 ,

Creé algunos datos:

vyangliumsft_0-1719300847132.png

Estos son los pasos que puedes seguir:

1. Crear una tabla calculada.

Table 2 =
var _table1=
DISTINCT('Table'[Year])
var _table2=
{"Late Backlog"}
var _table3=
CROSSJOIN(

    _table1,_table2)

var _table4=
SUMMARIZE('Table',[Year],[Month])
var _table5=
UNION(
    _table4,_table3)
return
ADDCOLUMNS(
    _table5,"Date",
    IF(
        [Month]="Late Backlog",BLANK(),
        MINX(FILTER(ALL('Table'),
        [Year]=EARLIER('Table'[Year])&&[Month]=EARLIER('Table'[Month])),[Date])))

vyangliumsft_1-1719300847135.png

2. Crear medida.

Flag =
VAR _today =
    TODAY ()
VAR _startdate =
    EOMONTH ( _today, 0 )
VAR _enddate =
    EOMONTH ( _today, 3 )
VAR _nextenddate =
    DATE ( YEAR ( _enddate ) + 1, MONTH ( _enddate ), 1 )
RETURN
    IF (
        MAX ( 'Table 2'[Month] ) = "Late Backlog"
            || MAX ( 'Table 2'[Date] ) > _startdate
                && MAX ( 'Table 2'[Date] ) <= _enddate
            || MAX ( 'Table 2'[Date] ) > _nextenddate,
        1,
        0
    )
Value_Measure =
VAR _today =
    TODAY ()
VAR _startdate =
    EOMONTH ( _today, 0 )
VAR _enddate =
    EOMONTH ( _today, 3 )
RETURN
    IF (
        MAX ( 'Table 2'[Month] ) = "Late Backlog",
        SUMX (
            FILTER (
                ALL ( 'Table' ),
                [Year] = MAX ( 'Table 2'[Year] )
                    && 'Table'[Date] <= _enddate
            ),
            [Value]
        ),
        SUMX (
            FILTER (
                ALL ( 'Table' ),
                [Year] = MAX ( 'Table 2'[Year] )
                    && [Month] = MAX ( 'Table 2'[Month] )
            ),
            [Value]
        )
    )

3. Coloque [Bandera] en Filtros, establezca es = 1, aplique el filtro.

vyangliumsft_2-1719300945536.png

vyangliumsft_3-1719300945538.png

4. Dado que la ordenación predeterminada de Power BI es alfabética, debemos crear una tabla de ordenación si queremos mostrar el efecto deseado.

Table 3 =
SUMMARIZE(
    'Table 2',[Month],
    "date",
    IF(
        [Month]="Late Backlog",MINX(ALL('Table 2'),[Date])-1,
    MINX(FILTER(ALL('Table 2'),[Month]=EARLIER('Table 2'[Month])),[Date])))

Seleccione [Mes] – Herramientas de columna – Ordenar por columna – [fecha]

vyangliumsft_4-1719301015633.png

5. Unión de dos mesas.

vyangliumsft_5-1719301015635.png6. Resultado:

vyangliumsft_6-1719301051762.png

Saludos

Liu Yang

Si esta publicación ayuda, considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente

Porque

Syndicate_Admin
Administrator
Administrator

Proporcione datos de muestra que cubran su problema o pregunta por completo, en un formato utilizable (no como una captura de pantalla).

No incluya información confidencial ni nada que no esté relacionado con el problema o la pregunta.

Si no está seguro de cómo cargar datos, consulte https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Muestre el resultado esperado en función de los datos de muestra que proporcionó.

¿Quieres respuestas más rápidas? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors