How to create a date scaffold in Tableau using Relationships

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

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

  • @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!

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

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

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

    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.

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

    Thanks

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

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

  • @naga3704
    @naga3704 3 месяца назад

    Subscriber from India 🇮🇳

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

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

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

    This was extremely helpful, thanks Tim!

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

    Thanks Tim, this is super helpful.

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

    Wow, that's awesome, Tim!!!

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

    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 !

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

    This was very helpful. Thank you!

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

    This was a great technique.

  • @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

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

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

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

    thanks for ur efforts man very helpful for me.

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

    Thank you for this video

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

    Good explanation!

  • @lavaforce-overwatchmoments9848

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

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

    Really brilliant many thanks mate

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

    You are a genius!!

  • @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?

  • @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?

  • @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

  • @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?

  • @samabz1870
    @samabz1870 Год назад +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 Год назад

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

    • @TableauTim
      @TableauTim  Год назад +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.

  • @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

  • @kentestanislao9988
    @kentestanislao9988 2 месяца назад

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

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

      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.

  • @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.

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

    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  Год назад

      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  Год назад +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 Год назад

      @@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 Год назад

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

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

    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  9 месяцев назад

      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

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

    Thank u

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

    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  3 года назад +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.

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

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

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

      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

  • @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.