Skip to main content

HI all,

 

I'm wanting to create a calc field looking like this

{ FIXED MAX[Number] : MIN[DATE] }

 

Obviously Tableau does not like this as i am using an AGG in the first Part of my calc,

 

Does anyone know how i can achieve the same results this would provide but using a different calculation.

 

I will try top anonamyse my data to post and example.

 

I'm trying to get a MAX of a number and for it to show the first time that number appeared, but i also need to include the date in my data table. As soon as date is added to ROW it shows MAX for each and every Date/Time in the data

 

ANY HELP?

12 answers
  1. Apr 10, 2018, 12:31 PM

    Good morning

    A little unclear on the expectation but see the approach attached

     

    it presents 2 option - one is the overall max number/date the other is the max by week/.network

     

    Overall

    max number

    Good morningA little unclear on the expectation but see the approach attached it presents 2 option - one is the overall max number/date the other is the max by week/.

    date/time you will need to place as a discrete exact data on the shelf)

    pastedImage_3.png

     

    it returns  this in a detail chart

     

    pastedImage_4.png

    or this in summary

    pastedImage_5.png

     

    if you wanted by network and week

    the max value is

    pastedImage_6.png

     

    and the date is

     

    pastedImage_8.png

     

    it will return this in detail

    pastedImage_9.png

     

    and this in summary

     

    pastedImage_10.png

     

    Jim

     

    If this posts assists in resolving the question, please mark it helpful or as the 'correct answer' if it resolves the question. This will help other users find the same answer/resolution.  Thank you.

0/9000