Forum Discussion

tessaw's avatar
tessaw
Icon for Microsoft Employee rankMicrosoft Employee
6 years ago
Solved

Strange behavior in week over week table

I’m running into an issue that I cannot find a reasonable explanation for. I have a dashboard that calculates the total number of calls our service has by the response code for that call. We are inte...
  • Icey's avatar
    Icey
    6 years ago

    Hi tessaw ,

     

    The cause is that your date filter will also filter the Response Code. Another separate Response Code table is needed to be created, which won't be filtered by your date filter. Steps are as follows:

     

    1. Create a Response Code table.

     

    Response Code = VALUES(AzureDataExplorer[ResponseCode])

     

     

    2. Change your [TotalCount] measure like so:

     

    TotalCount =
    CALCULATE (
        SUM ( AzureDataExplorer[Count] ),
        FILTER (
            AzureDataExplorer,
            AzureDataExplorer[ResponseCode] IN VALUES ( 'Response Code'[ResponseCode] )
        )
    )
    

     

     

    3. Replace AzureDataExplorer[ResponseCode] with 'Response Code'[ResponseCode] in your table visuals.

     

     

     

    Best Regards,

    Icey

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.