Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

data month auery

hiii
i have a slicer named month name 
now i want a line graph displaying past 2 months and current month data based on slicer month name selection.
how can i get it

https://drive.google.com/file/d/16YSO8dxe8KkxL4Av6vHlSSIfHdVhQZvH/view?usp=sharing

 

  • Icey's avatar
    Icey
    5 years ago

    Hola @greeshma ,

    Cambie el campo de segmentación de datos a "MonthName" de la tabla "Dates".

    slicer.JPG

    Saludos

    Icey

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

5 Replies

  • camargos88's avatar
    camargos88
    Icon for Community Champion rankCommunity Champion

    @greeshma ,

    Veo que tiene alguna columna de fecha, ¿qué columna de fecha se puede utilizar como referencia para el nombre del mes? Así que podemos crear una medida para lograr lo que quieres.

    • Anonymous's avatar
      Anonymous
      Not applicable

      He utilizado la tabla de fechas cerradas de llamada

  • Icey's avatar
    Icey
    Icon for Community Support rankCommunity Support

    Hola @greeshma ,

    Por favor, compruebe:

    1. Cree otra tabla Fechas.

    Dates =
    ADDCOLUMNS (
        CALENDAR ( DATE ( 2020, 1, 1 ), DATE ( 2020, 12, 31 ) ),
        "Year", YEAR ( [Date] ),
        "Month", MONTH ( [Date] ),
        "MonthName", FORMAT ( [Date], "mmmm" )
    )
    

    2. Cree columnas en la tabla Query.

    Call Closed Date = [Call Closed].[Date]

    date.JPG

    YearMonth = FORMAT([Call Closed Date],"YYYY MMMM")

    3. Cree una relación entre las dos tablas.

    relationship.jpg

    4. Crear medidas.

    M.SLA% 2 = CALCULATE([M.SLA%],DATESINPERIOD ( Dates[Date], MAX ( Dates[Date]), -3 , MONTH ))
    RAW SLA% 2 = CALCULATE([RAW SLA%],DATESINPERIOD ( Dates[Date], MAX ( Dates[Date]), -3 , MONTH ))
    Count of Call Closed = CALCULATE(COUNT(Query1[Call Closed]),DATESINPERIOD ( Dates[Date], MAX ( Dates[Date]), -3 , MONTH ))

    5. Cree objetos visuales.

    visuals2.JPGvisuals1.JPG

    Saludos

    Icey

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

    • Anonymous's avatar
      Anonymous
      Not applicable

      hi icey thank you for the help my issue now is the 3 month trend graph now if i go nd try to place it along with the other graphs displaing only the current month data. the 3 month graph goes it doesnt show any data in the graph.

      this graph doesnt shw any data

       

      • Icey's avatar
        Icey
        Icon for Community Support rankCommunity Support

        Hola @greeshma ,

        Cambie el campo de segmentación de datos a "MonthName" de la tabla "Dates".

        slicer.JPG

        Saludos

        Icey

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