Lookup function

Lookup function


       lookup function displays the expression based on the offset.the offset can be either number or first() or last() or can be eiter number.

           syntax

                lookup(expression,[offset])


 product  sum(sales)  lookup(sum(sales),first())   first()   lookup(sum(sales),1)   lookup(sum(sales),-1)

        A        100              100                          0               200                                   -


        B        200              100                         -1             300                            100

        C        300              100                         -2             400                            200  

        D        400              100                          -3          -                                   300        









size function


   
        size function gives the no.of values in the data view.



          total function


              it displays the total of the input expression.


                   syntax

                        total(expression)








         

1 comment:

  1. Good explanation,thanks for writing,it is useful for so many developers Tableau Online Training

    ReplyDelete