ZN Function in Tableau: Replace Nulls with Zeros

Поділитися
Вставка
  • Опубліковано 23 лип 2024
  • Link to mock data set: bit.ly/39KDuWU
    The ZN function helps you deal with issues and challenges caused by having Null values as part of calculations and aggregations. In this video, I show you how it works, how to use it and a scenario highlighting why it's important to know about this function.
    0:00 Intro
    0:22 How does ZN work in Tableau?
    3:33 Use cases
    6:34 Outro -
    #tableau #salesforce #analytics Share feedback and Suggestions: tableautim.canny.io/suggestions -
    -
    Join this channel to get access to perks:
    / @tableautim ----------
    (C) 2023 TN-Media LTD. No re-use, unauthorized use, or redistribution, of this video without prior permission.

КОМЕНТАРІ • 19

  • @norsemark
    @norsemark 3 роки тому +2

    More?! We can't keep up! This is fantastic stuff Tim!

  • @azel1086
    @azel1086 3 роки тому

    Thank you Tim for sharing your knowledge with us!

  • @blackwhite2361
    @blackwhite2361 3 роки тому

    Hey bro. I thought I knew tableau until i started watching your videos on Tableau functions. Very informative. You earned yourself one more subscriber👍🏿👍🏿👍🏿

  • @user-sn5py3vx9k
    @user-sn5py3vx9k Рік тому

    This guy is awesome!

  • @pratiksoni2949
    @pratiksoni2949 2 роки тому

    You are a great teacher. Thank you!

  • @Coolthoom
    @Coolthoom 3 роки тому

    Thank you Tim! Great explanation.

  • @davidgrespan
    @davidgrespan 3 роки тому

    Thanks for this vídeo!! Best regards from brazil!!!

  • @mafifafm
    @mafifafm Рік тому

    Thanks a lot, it works with count on a table too.

  • @DrJuanTaco
    @DrJuanTaco 3 роки тому +1

    The one trouble I've run into with ZN() is that it is going to offset your AVG() and MEDIAN() calcs. If you need to use a field that has a lot of nulls but calculate those types of aggregations, I end up using a filter on the measure value - special - filter nulls. ZN() works great for sums and properly labeling dimensions when there is no value.

    • @TableauTim
      @TableauTim  3 роки тому

      Covered this in the video it really depends what those nulls mean. If they mean zero the they’re not offsetting anything otherwise you can filter the bulls and not use ZN

  • @TOPELECTRIC123
    @TOPELECTRIC123 2 роки тому

    Tim is great! Easier to understand, though different style from Belle

    • @TableauTim
      @TableauTim  2 роки тому +1

      I think that’s the great thing about UA-cam you can watch the same content from so many different creators and get the best of both. Donabelle is fantastic.

  • @nafiulhaque5585
    @nafiulhaque5585 2 роки тому

    Thank you.

  • @attilajuhasz8
    @attilajuhasz8 2 роки тому

    Hello Tim, in this particular case NOT using ZN makes more sense to me. Why would we lower the avg by adding zeros if there wasn't any film in that genre?

  • @nagarajannethi
    @nagarajannethi 2 роки тому +1

    ❤❤ Thanks 💕💕💕💕

  • @hermzzz1688
    @hermzzz1688 2 роки тому

    Hi can this be used across multiple columns in one statement or do I have to write one per Measure?

    • @TableauTim
      @TableauTim  2 роки тому +1

      One per measure. You could push this back into data prep though. It’s more of a data type / format challenge and that’s usually better done in bulk in the orgin data source. Also you could use something like Tableau prep to do it faster

    • @hermzzz1688
      @hermzzz1688 2 роки тому

      @@TableauTim Yea i noticed that I am utilizing query as a measure to help format it before pushing through prep and tableau

  • @tag_of_frank
    @tag_of_frank 2 роки тому

    ZN doesn't seem to work for counting rows of non-numeric data in line plots.