Forum Discussion

sharpedogs's avatar
sharpedogs
Icon for Advocate II rankAdvocate II
6 years ago

Capturing the Max Value in column

I am trying to capture the Max value in a column for the day. A Peak value if you will....

 

I wnat to call out that the Citrix Max is 36 and RAS is 23. 

 

I need to add a filter in the DAX to seperate both. For some reason i try to use MAXX and i just can't get the right numbers to appear.

 

Time 

Service # of Incidents
2:00pmRAS14
2:30pmCitrix 36
3:00pmRAS23
3:30pmRAS17
4:00pmCitrix 22

 

 

 

5 Replies

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

    Hi sharpedogs 

    maybe this simple measure will be enough?

    Measure = CALCULATE(MAX(Table[# of Incidents]), ALLEXCEPT(Table, Table[Service]) )

    or

    Measure = CALCULATE(MAXX(Table, Table[# of Incidents]), ALLEXCEPT(Table, Table[Service]) )
    • sharpedogs's avatar
      sharpedogs
      Icon for Advocate II rankAdvocate II

      Hey, 

      Your funtion works great... but I now seeing how I phrased the question it was terrbile...lol.. My issue is that i need a MAX but with a time filter and thats where i am having trouble.

       

      Below is a better view of the data i have. I have a time field thats set in 5 minute intervales (starting at 6am to 5pm). I need to report on the Peak Sumed values for each time period. For example, based on the below chart i would want to show in a Card format the MAX value 150. Because at 12:10 PM the service had a total of 150 users and that was larger than the sum values for 12:05pm or 12:15pm. 

       

      I struggle with manipulating time intervals.  

       

      TimeValueService 
      12:05:00 PM10Citrix
      12:05:00 PM30Citrix 
      12:05:00 PM20Citrix
      12:10:00 PM50Citrix
      12:10:00 PM50Citrix
      12:10:00 PM50Citrix
      2:15:00: PM10Citrix
      2:15:00: PM10Citrix
      2:15:00: PM10Citrix

       

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

        sharpedogs 

        add to ALLEXCEPT Time column like

        Measure = CALCULATE(MAXX(Table, Table[# of Incidents]), ALLEXCEPT(Table, Table[Service], Table[Time]) )