Forum Discussion

gilmore_staci's avatar
gilmore_staci
Icon for Helper III rankHelper III
10 months ago
Solved

clustered column chart with 3 different data points that use 3 different date fields

I have 3 formula fields that calculate if the SLA was met for Response, Restore and Resolve Response Met is based on Date Open Restore Met is based on the Service Restored date field  Resolve Met ...
  • Ahmed-Elfeel's avatar
    10 months ago

    Hi gilmore_staci,

    So you want to Create Like a Combined Summary Report right?

    •  First you need create a Metric Table: (Disconnected)
    Metric Table = 
    DATATABLE(
        "Metric Name", STRING,
        "Order", INTEGER,
        {
            {"Response", 1},
            {"Restore", 2},
            {"Resolve", 3}
        }
    )
    • Also create the Three Base Measures :
    Response SLA % = 
    DIVIDE(
        CALCULATE(COUNTROWS('YourTable'), 'YourTable'[Response Met] = 1),
        COUNTROWS('YourTable'),
        0
    )
    
    Restore SLA % = 
    DIVIDE(
        CALCULATE(COUNTROWS('YourTable'), 'YourTable'[Restore Met] = 1),
        COUNTROWS('YourTable'),
        0
    )
    
    Resolve SLA % = 
    DIVIDE(
        CALCULATE(COUNTROWS('YourTable'), 'YourTable'[Resolve Met] = 1),
        COUNTROWS('YourTable'),
        0
    )
    •  Then Create the main DAX Measure:
    SLA Performance = 
    VAR SelectedMetric = SELECTEDVALUE('Metric Table'[Metric Name])
    RETURN
    SWITCH(
        SelectedMetric,
        "Response", [Response SLA %],
        "Restore", [Restore SLA %],
        "Resolve", [Resolve SLA %],
        BLANK()
    )

     

    Tell me if this works ☺️❤️

    if this post helps, then I would appreciate a thumbs up and mark it as the solution to help the other members find it more quickly.