How to create a date scaffold in Tableau using Relationships

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024

Комментарии • 58

  • @PatrickBateman12420
    @PatrickBateman12420 2 года назад

    Wow, that's awesome, Tim!!!

  • @menschnars
    @menschnars 2 года назад +5

    Tim, this totally helped me solve an issue I was struggling with and trying to solve with a lot of complex calculations. Thanks so much for all of your videos and ongoing support of the Tableau community!

  • @philipbmilner1
    @philipbmilner1 Год назад

    Thanks Tim, this is super helpful.

  • @MikhailMorales
    @MikhailMorales 2 года назад

    What a great video. Very descriptive and concise. I'm beginning a project at my job that will require date scaffolding and this video describes exactly what I need to do. Great job.

  • @DiegoPerezGrandamarina
    @DiegoPerezGrandamarina 2 года назад

    You are a genius!!

  • @shashankworldpeace
    @shashankworldpeace 2 года назад

    Good explanation!

  • @navi88888
    @navi88888 2 года назад +2

    Thanks Tim, such a great video, the easiest content available on the entire internet, I'm working on similar thing with the end date = null, how can I include the null end date to this?

    • @victorbueno2900
      @victorbueno2900 2 года назад

      Your able to do custom calculations for the fields. So when you press the drop down when selecting end date your going to press edit calculation and then just do IF ISNULL(End date) THEN TODAY() ELSE End date END

  • @FooMengNg
    @FooMengNg Год назад

    Hi Tim, Enjoyed the video. great to be able to resolve time periods. I like to seek your advise, How would you use data scaffolding if you have 2 sets of time periods. 1) Promo event: start and end dates and 2) baseline : baseline_start and baseline_stop? I tried your method, I can only do 1) and 2) on separate sheets? is there a way to manipulate the relationships such that I can perform both 1) and 2) correctly on the same sheet in Tableau? Hope you can advise please?

  • @GotHeem
    @GotHeem 2 года назад +1

    Great video, Tim. Crisp, articulate, great quality video and audio. Subscribed!

  • @samabz1870
    @samabz1870 10 месяцев назад +1

    What should we do for data that does not have a end date? It says null on the x axis when i make the graph in tableau

    • @samabz1870
      @samabz1870 10 месяцев назад

      This is data that is still active, it has a start date but no end date

    • @TableauTim
      @TableauTim  10 месяцев назад +1

      you could write logic that uses today if it is null that way it constantly changing as the days progress or use a date in the future to have it extend beyond today and then mark dates beyond today in a different colour to show they're still being processed.

  • @TicTacTaz
    @TicTacTaz 2 года назад +1

    Thanks

  • @naga3704
    @naga3704 21 день назад

    Subscriber from India 🇮🇳

  • @dagie07
    @dagie07 2 года назад

    Tim - excellent video! What do I do when the only operator I have available is =? The >= or

    • @dagie07
      @dagie07 2 года назад

      After doing some research, it appears the issue may be that one of my data sources is using a Web Data Connector and that may be limiting what relationships I can do

    • @TableauTim
      @TableauTim  2 года назад +1

      hadn't seen your initial comment. I'll have a play to validate what you discovered. Typically a data source restriction would be the reason some items are limited.

    • @tzuriminecraft
      @tzuriminecraft 2 года назад +1

      @@dagie07 Have you found a way to deal with that even though only operator = is available ?

    • @dagie07
      @dagie07 2 года назад

      @@tzuriminecraft Not entirely...I'm trying to see if I can calculate what I need with a formula, in lieu of using the date scaffold

  • @hamamunashe
    @hamamunashe Год назад

    Hi, Tim. Need help, I have date scaffold and am using ifnull or zn function to display 0. However, Zero’s are not showing. What might be causing this

  • @Nurtured_Soul_Sanctuary
    @Nurtured_Soul_Sanctuary 2 года назад

    Thanks Tim! Awesome video! Question: if you switch the order of data sources (put the original CSV file on the left and the date scaffold Excel on the right) with the same relationship settings, does it work the same way as your video? Does the primary vs secondary data source matter in relationships?

  • @mattb6124
    @mattb6124 2 года назад

    I've done something similar where I've joined a date dimension to my main fact table though when I try to create avg measures to calculate avg # of exams per day, it's giving my an avg exams per day, but only for days in which exams were completed. This is useful but not what I was wanting. How do I get it to include those days in the avg calculation in which 0 exams were completed?

  • @kentestanislao9988
    @kentestanislao9988 15 часов назад

    Hi Tim!
    What if the 'end date' is in different table?

    • @TableauTim
      @TableauTim  9 часов назад

      relations can handle that you just need a relation through another dimension for example you could have order date on one table orders tabel and return date on a returns table. In order to make this work you just need to bring in a date scafold and have everything relate back to this plus order id and it should work.

  • @sanoobarkhan1445
    @sanoobarkhan1445 7 месяцев назад

    Hi Tim,
    I am not getting the right value after scaffolding when I try to put the count of days I get weired numbers

    • @TableauTim
      @TableauTim  7 месяцев назад

      Check your relationship is correct. That’s the only explanation. Your data might be at a different level of granularity than you expect as well causing this. Check out my video on granularity as part of the LOD series

  • @annieatgitlab
    @annieatgitlab 10 месяцев назад

    Do you use this with big live data sets? + Do you use this when there needs to be more than one date that relates to the date scaffold? (created date for pipeline generation, closed date for closed deals for example)

    • @TableauTim
      @TableauTim  10 месяцев назад

      Yes it works with both as long as you mapping to a single date timeline. It’s very performant even at scale as the data model handles the complexity and only brings in the necessary rows for the view unlike a join which executes on the entire set of tables and doesn’t offer flexibility to change context.

    • @TableauTim
      @TableauTim  10 месяцев назад +1

      Ps you can also flip this model on its head to answer questions in reverse. I.e. relate a dimensions many date multiple times to the same timeline allowing you have all the attributes at different points in time available at any point on the timeline.

    • @annieatgitlab
      @annieatgitlab 10 месяцев назад

      @@TableauTim I am working on something along these lines right now, thinking about having the date calendar table as the base and then bringing the same "actuals" table onto it as just a = left join in the physical layer, to join create date, close date, and snapshot date. But then doing a relationship of that table out to two dimension tables and then target tables where we bring in the = method to bring in the targets.
      I tested this out with the targets and it was performing correctly, but ran into performance issues with the physical join!!

    • @annieatgitlab
      @annieatgitlab 10 месяцев назад

      So ( Date dimension = (Created date table, slimmed to required metrics) (close date table) (snapshot date table) ) ~ (Dimensions) ~ (= Targets)
      !! 😅

  • @lavaforce-overwatchmoments9848

    Thank you so much. This really helped me a lot!! Cheers :))))

  • @D8taKo
    @D8taKo 2 года назад

    Thank you for creating this video! It helped me a lot with my Iron Quest project!

  • @JWB1081
    @JWB1081 10 месяцев назад

    This was extremely helpful, thanks Tim!

  • @MochaPlayer1
    @MochaPlayer1 4 месяца назад

    This was very helpful. Thank you!

  • @fulfillfeel
    @fulfillfeel 9 месяцев назад

    I want to monitor data date like that but level Minute :(

    • @TableauTim
      @TableauTim  9 месяцев назад

      Same logic works at the minute level but only if you have many records at the second level otherwise it’s pointless. Just use a date time field rather than date and the rest just works

  • @karunakarsirimisetti2713
    @karunakarsirimisetti2713 8 месяцев назад

    thanks for ur efforts man very helpful for me.

  • @bellaking8352
    @bellaking8352 2 года назад

    Can you please make a video on how to create six time periods out of a year similar to 4 quarters. Tableau's "date field" by default expands into year, 4 Qtrs and 12 months when you keep a date field in the shelf. Can I make the same field to display 6 time periods similar to 4Qtrs. This will help me with Pair over Pair similar to Quarter over quarter or month over month trends/ calcs. A pair of mths could be P1=Jan & Feb, p2=Mar & Apr like that until P6 =Nov & Dec. I need this "period field " exactly like a DATE FIELD with all its features. Say for ex when i keep this newly created field in the column shelf, it should roll out as year, Qtr, Set (Pair of mths), and then Day. With this I can do a period over period analysis like quarter over quarter. THANK YOU!!

    • @TableauTim
      @TableauTim  2 года назад

      Do they need to be equal periods or do they have set start and end dates? If the later you could just do a conditional calculation no need for a video, its just a logic calculation where you describe when the periods start and end or you could just manually group the months using the month date dimension.

  • @AliTwaij
    @AliTwaij Год назад

    Really brilliant many thanks mate

  • @Lyriks_
    @Lyriks_ Год назад

    Hey here are 3 fun facts :
    1- I'm currently driving a project to implement tableau in my company, and i've been more inspired to do so partially because of your video
    2- I was born the 30th december
    3- I'm also from african descent
    Cheers and thanks for the content !

  • @kamaur01
    @kamaur01 Год назад

    Thank you for this video

  • @jameslucas5590
    @jameslucas5590 Год назад

    This was a great technique.

  • @carlkim2577
    @carlkim2577 2 года назад

    Great stuff! I would love to use this solution, but our data is published to the tableau server. So we can't use relationships. Makes me very sad haha.

    • @TableauTim
      @TableauTim  2 года назад +1

      This is a huge feature request over with Tableau Devs. I think its more of a question of when than IF for that one.

  • @nealcantin2189
    @nealcantin2189 2 года назад

    Great video sir. I have subscribed and will be using you as a reference going forward. Thanks a ton.

  • @statusking_Original
    @statusking_Original Год назад

    Dataset???

    • @TableauTim
      @TableauTim  Год назад

      It’s an example not a follow along tutorial. You can apply this idea to any dataset. The excel scaffold you’d need to create yourself and the other data set was mock data from mockeroo. You’d can create that for too in mockeroo.

  • @NagaRaju-tm8xe
    @NagaRaju-tm8xe 2 года назад

    Thank u

  • @marktossell8461
    @marktossell8461 Год назад

    More great content, Tim - I constantly recommend your channel to our customers.