Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

Max Values for the data that makes up a visualisation

Hi there,

Below is a visualisation I have and the underlying data of that visualisation.

 

Is there a way to show the max values only in the table to show which week the max is hit.

 

So there woud be 4 lines, 2 for Sydney and 2 for Vancouver in the table output.

One of the lines for example would be 03/10/22 Houdini Core 66.40 Sydney as that is the first week it hits the maximum.
I thought I could just display the underlying table as a visualisation and show the Max but alas that is not the case.

 

 

6 Replies

  • Anonymous , In line visual, you do not have option secondary line with legend.

     

    One way is you create measure for license , then you can get max measure like to

    calculate(maxx(values(Table[Date]), [Your measure]),filter(allselected(Table), Table[license] = max(Table[license]) && Table[license] ="Houdni"))

     

    and add additional lines

  • Anonymous's avatar
    Anonymous
    Not applicable

    actually I realised I have asked this previously and not achieved the result I am after, maybe it's just one of those things I think can be done but can't.

     

    Thanks anyway.

      • Anonymous's avatar
        Anonymous
        Not applicable

        Thanks.  I will mock up some data next week and put into the thread.  

        I am just rubbish at Dax and dont understand some of the information I see as replies.

        I'll loop back to this next week.

         

  • Anonymous yes mockup data with the expected result will help to provide the solution. 

     

     

    Follow us on LinkedIn and  to our YouTube channel

    I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

     

    Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Basically What I want is a measure that would have 4 lines in it.

       

      I want to know the week when the most of a license is in use for a location.

       

      So it would sum on a week by week basis and come up with a total per week per location for the two different license types (Houdini FX and Houdini Core)

      So the four lines would be

      Location, Date, License, Max of LicenseTotal

       

      So for this data

      Sydney  02/05/22   FX   30

      Sydney  16/05/22   Core  69

      Vancouver  25/04/22  FX  19

      Vancouver  02/05/22  Core  44

       

       

      LocationCraftDateLicenseLicenseTotal
      SydneyChar FX25-Apr-22Houdini FX18
      SydneyChar FX25-Apr-22Houdini Core8
      VancouverChar FX25-Apr-22Houdini FX9
      VancouverChar FX25-Apr-22Houdini Core3
      SydneyFX25-Apr-22Houdini FX8
      SydneyFX25-Apr-22Houdini Core4
      VancouverFX25-Apr-22Houdini FX10
      VancouverFX25-Apr-22Houdini Core3
      SydneySurfacing25-Apr-22Houdini Core44
      VancouverSurfacing25-Apr-22Houdini Core33
      SydneyChar FX2-May-22Houdini FX20
      SydneyChar FX2-May-22Houdini Core10
      VancouverChar FX2-May-22Houdini FX7
      VancouverChar FX2-May-22Houdini Core5
      SydneyFX2-May-22Houdini FX10
      SydneyFX2-May-22Houdini Core6
      VancouverFX2-May-22Houdini FX9
      VancouverFX2-May-22Houdini Core4
      SydneySurfacing2-May-22Houdini Core48
      VancouverSurfacing2-May-22Houdini Core35
      SydneyChar FX9-May-22Houdini FX19
      SydneyChar FX9-May-22Houdini Core5
      VancouverChar FX9-May-22Houdini FX6
      VancouverChar FX9-May-22Houdini Core3
      SydneyFX9-May-22Houdini FX8
      SydneyFX9-May-22Houdini Core3
      VancouverFX9-May-22Houdini FX8
      VancouverFX9-May-22Houdini Core3
      SydneySurfacing9-May-22Houdini Core37
      VancouverSurfacing9-May-22Houdini Core35
      SydneyChar FX16-May-22Houdini FX18
      SydneyChar FX16-May-22Houdini Core12
      VancouverChar FX16-May-22Houdini FX6
      VancouverChar FX16-May-22Houdini Core2
      SydneyFX16-May-22Houdini FX8
      SydneyFX16-May-22Houdini Core10
      VancouverFX16-May-22Houdini FX9
      VancouverFX16-May-22Houdini Core5
      SydneySurfacing16-May-22Houdini Core47
      VancouverSurfacing16-May-22Houdini Core28