How to Create KPI and Sparklines in a Single Sheet

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ก.ค. 2024
  • Typically I see people creating one sheet for their KPIs and another for a sparkline. In this tip, I show you how to combine them into a single worksheet. Less worksheets equals less maintenance!
    Download the workbook here - www.vizwiz.com/2020/01/kpi-sp...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 132

  • @fabscocoa3452
    @fabscocoa3452 ปีที่แล้ว +1

    Hi Andy, I just wanted to say thank you for being so diligent in taking time aside from your day to give us good quality content. I appreciate you and I wish you many blessings.

    • @vizwiz
      @vizwiz  ปีที่แล้ว

      I appreciate that!

  • @oregonfelder1
    @oregonfelder1 ปีที่แล้ว +3

    I’ve been banging my head against the table trying to figure this out on my own. I saw these cards in a dashboard and it has driven me nuts not knowing how it was done.
    Thanks for the quick explanation and work through. Definitely for power users and not like the other beginner stuff that is so prevalent.

    • @vizwiz
      @vizwiz  ปีที่แล้ว +1

      I try to provide a mix of all levels. This certainly not basic as you said. 😊

  • @jamesyuno
    @jamesyuno 3 ปีที่แล้ว +1

    my favourite tableau channel on youtube. You've helped me heaps in creating my work dashboards. thanks bro!

    • @vizwiz
      @vizwiz  3 ปีที่แล้ว +1

      Thanks James! That’s very kind of you. Pass along the word to others. 😊

  • @pieicx
    @pieicx 2 ปีที่แล้ว

    thanks Andy for sharing your great knowledge with us. I have watched many tutorials but yours are my fav.

  • @huguititi
    @huguititi 3 ปีที่แล้ว +5

    Nice!!!! This video cover themes that i have looking for so many time... Thanks!!!

  • @engineermajidd
    @engineermajidd 3 ปีที่แล้ว +3

    Great content! Also, thank you for recording at 1080P

  • @Vintagetube310
    @Vintagetube310 3 ปีที่แล้ว +1

    Thanks, Andy! This demo was fantastic!

    • @vizwiz
      @vizwiz  3 ปีที่แล้ว

      My pleasure!

  • @xiaoyangshawnhuang1251
    @xiaoyangshawnhuang1251 ปีที่แล้ว

    it's like an art, Andy, it's just wonderful! thanks for sharing it.

    • @vizwiz
      @vizwiz  ปีที่แล้ว

      My pleasure

  • @eduardovaldez-modonese5517
    @eduardovaldez-modonese5517 ปีที่แล้ว +4

    The calculations here are way above my current level, but I'm working hard on developing KPI's and watching Andy at work is amazing.
    Thanks for taking the time Andy!
    If anyone can help on this.....I'm doing a lot of online courses and watching as many tutorials as I can but I still can't find how to fill the gap to go from basic calculations to more complex calculations and understanding the functions and syntax used for the latter. There always seems to be a considerable leap in knowledge and although I know you just gotta keep going and practice/research, sometimes it's a little crushing. Any recommendations? Thanks in advanced!

  • @santiagocandia572
    @santiagocandia572 2 ปีที่แล้ว

    I am learning a lot from you. Your videos are great! Keep it up!

    • @lucianocc1043
      @lucianocc1043 2 ปีที่แล้ว

      Estamos en la misma colega, placer de verlo por aca. Luciano Cossu

  • @shuba7410
    @shuba7410 3 ปีที่แล้ว

    This is just amazing! Thanks for sharing..

  • @SSJwalker
    @SSJwalker 2 ปีที่แล้ว

    This was what i was looking for. Thanks man!

    • @vizwiz
      @vizwiz  2 ปีที่แล้ว

      My pleasure. I’m glad you found it helpful.

  • @audyabednego1266
    @audyabednego1266 3 ปีที่แล้ว +1

    this is amazing!!!

  • @vsagar4b38
    @vsagar4b38 11 วันที่ผ่านมา

    Nice , thanks for Calculations and Spark line

  • @Neehal_vid
    @Neehal_vid 2 ปีที่แล้ว

    Very nice video sir!

  • @dataalive3281
    @dataalive3281 4 ปีที่แล้ว

    You are my hero. Suscribed!

  • @shivani8126
    @shivani8126 2 ปีที่แล้ว +1

    Wow wow I needed it thank you!!!!

    • @vizwiz
      @vizwiz  2 ปีที่แล้ว

      Fantastic. Thanks for the comment.

  • @sutejguru
    @sutejguru 3 หลายเดือนก่อน

    Awesome explanation with steps

    • @vizwiz
      @vizwiz  3 หลายเดือนก่อน

      Glad you liked it

  • @gokulsutar1696
    @gokulsutar1696 ปีที่แล้ว

    Great video it's wonderful explanation and it's helpful for creating KPI i would like see more videos on LOD Expressions

    • @vizwiz
      @vizwiz  ปีที่แล้ว

      Here's a bunch of videos www.youtube.com/@vizwiz/search?query=level%20of%20detail

  • @mohanrao-fw9ix
    @mohanrao-fw9ix 3 ปีที่แล้ว

    It's awesome ❤️

  • @hoanghai5980
    @hoanghai5980 ปีที่แล้ว

    Great! Thank you for guide

  • @nickkamenos2349
    @nickkamenos2349 2 ปีที่แล้ว

    This was great. Thank you! For the CY/PY comparison - how would I go about comparing the monthly average for the CY/PY?

  • @dal-qi3gv
    @dal-qi3gv ปีที่แล้ว

    great video thank you

    • @vizwiz
      @vizwiz  ปีที่แล้ว

      Very welcome

  • @mohanr9522
    @mohanr9522 3 ปีที่แล้ว

    Hi Andy! Your videos are great and it helps me a lot on my learning!! I'm trying to show current month (By Parameter) as bar chart and last 12 months (used as true or false in filter) as line chart in the single sheet...But due to the last 12 months filter (Set true in filter), the current month value shown zero... Can you please help me how to show both the visuals in the same sheet... Or please make this one as a new video... Thanks in advance...

  • @rohithreddysureddy9151
    @rohithreddysureddy9151 3 ปีที่แล้ว +2

    where is the border update that you were talking about?

  • @parvezshahid8906
    @parvezshahid8906 7 หลายเดือนก่อน

    Fantastic! How can I add an "All years" option to the parameter, so the user can see the value for all years combined or they can input a date and compare to previous year? Happy to pay for this advice Andy. Thank you

  • @dharmeshraut5295
    @dharmeshraut5295 3 ปีที่แล้ว +1

    Excellent video. Please keep it up. I was wondering if we can add a green or a red triangle to show performance you?

    • @vizwiz
      @vizwiz  3 ปีที่แล้ว

      Yes. You need two calculations. One for positive and one for negative.

  • @chrisr.3321
    @chrisr.3321 3 ปีที่แล้ว +1

    Great video! I'm new to Tableau but I wonder if you can get rid of this duplication of sheets (Profit CY and Profit PY is more or less just a duplication of sales as you showed). So is it possible to have one sheet or even two but a kind of parameter so that you can use this parameter (Profit or Sales) which even could be selected by the user. Is this possible,too?

    • @vizwiz
      @vizwiz  3 ปีที่แล้ว +1

      Yes. Create a parameter that lists the metrics, then use the metric they select in the calculation.

  • @beansgoya
    @beansgoya ปีที่แล้ว +1

    for those who wants to do FISCAL year, you can use the dateadd function. For example. I want my year to start on October so it will look like this
    { FIXED : sum(IF YEAR(DATEADD('month',3,[setdatetime])) = {MAX(year(dateadd('month',3,[setdatetime])))}
    then [Appointment Count]
    END
    )}

    • @vizwiz
      @vizwiz  ปีที่แล้ว +1

      Great tip! Thanks for adding it.

  • @kritikarya3317
    @kritikarya3317 3 ปีที่แล้ว

    Hi Andy,
    Hopefully you will be doing well!
    I need help regarding one issue suppose if someone wants to change year and he wants to see the growth of that particular year with respect to prior year then what will be procedure of calculation??
    Suppose i need the dynamic filter on my KPI for YoY growth so that i can see growth of sales in 2018 WRT 2017 similarly growth of sales in 2019 WRT 2018 with dynamic current year selection.

  • @6toolbaseball
    @6toolbaseball 3 ปีที่แล้ว

    Great video! Curious why you used FIXED vs. just SUM for the Sales CY Calculated Field? Also, do you have another video showing the dynamic selections you created at the top in the visual at :17? To me, that might be the most powerful aspect of this KPI/sparkline tutorial.

    • @vizwiz
      @vizwiz  3 ปีที่แล้ว +4

      If I used Sum, I would get a range of values in the title.

    • @p2sharri
      @p2sharri 3 ปีที่แล้ว +1

      @@vizwiz I was using this amazing trick and stumbled upon the range of values in title. Glad that my wisdom served well in time which made me scroll through the comment and eventually find solution to the problem. I am a big admirer of your content. Please continue to post them and help our learning journey. Thank you.

    • @vizwiz
      @vizwiz  3 ปีที่แล้ว

      @@p2sharri Thanks for the feedback!!

  • @JD_018
    @JD_018 ปีที่แล้ว

    Hi Andy - Great video as usual. Do you know if there is a method to change the colors of the % change within the tooltip? So red if negative and green if positive.... Many thanks

    • @vizwiz
      @vizwiz  ปีที่แล้ว

      Yes, you have to create two calculations, one for positive and one for negative. Here's an example. www.vizwiz.com/2020/11/social-media-kpis.html

  • @moxie1189
    @moxie1189 3 ปีที่แล้ว

    Hi Andy. Excellent video to begin with. I have a question, I would really appreciate your help with. I am attempting to construct a dashboard, displaying high-level figures and want to avoid parameters and filters for the end-user, as the data coming into Tableau, is refreshed each month. I wanted to show about 6 small charts representing KPI’s. I will dual axis the charts, putting an area chart to the background for prior year and a line chart in the foreground for current year trends. Your LOD’s will solve the issue to ensure current and prior year on the dual axis charts. How do I ensure Tableau calculates the most recent month and prior month for percentage variance for current year? I’m trying to have Tableau do the “heavy lifting” by automatically updating percentage variance as the data is updated, without a parameter where end-users have to choose current month in order to display correct percentage variance. Many thanks

    • @moxie1189
      @moxie1189 3 ปีที่แล้ว

      A better way to explain it would be, how do I change your LOD calculations to make this month-over-month, as opposed to year-over-year and always ensure it’s for the most current year? Regards

  • @apaumichael954
    @apaumichael954 2 ปีที่แล้ว

    Thanks once again Andy!! So Andy, if I get you right, the most important part of using the calculated field to get our last 12 months is to make it dynamic right? I would like to know if there are other reasons please.

    • @vizwiz
      @vizwiz  2 ปีที่แล้ว +1

      If you want it to update automatically when you get new data, then you absolutely need to make it dynamic.

  • @selvivelraj4031
    @selvivelraj4031 5 หลายเดือนก่อน

    Hi Andy,
    Can we do develop the same dashboard with date range filter?

  • @sheryltansh
    @sheryltansh 3 ปีที่แล้ว

    Great video! What happens when I want to look in to specific region eg. Asia

    • @vizwiz
      @vizwiz  3 ปีที่แล้ว +1

      Add Region as a context filter.

  • @denysmurynka
    @denysmurynka 2 ปีที่แล้ว

    nice

  • @jinsonfernandez
    @jinsonfernandez 3 ปีที่แล้ว

    Hey Andy, Great stuff
    I need some help on similar context but with planning weeks on x axis for Year over Year comparison. Let me know the best channel to communicate with you

    • @vizwiz
      @vizwiz  3 ปีที่แล้ว

      I don't provide 1:1 support like this. I'd recommend you post your question on the forums.

  • @nisheshved
    @nisheshved 3 ปีที่แล้ว

    Hi Andy, great video and teaches a lot of things. But i dont want to do this as a single tile, but have it on a separate tile. Also i want to use a Date parameter which does not work in a similar way as a Date field. Can you share a video where you are doing this using date parameter and a separate tiles

    • @nisheshved
      @nisheshved 3 ปีที่แล้ว

      @andykribel

    • @vizwiz
      @vizwiz  3 ปีที่แล้ว

      great question for the forums

  • @shivanshnautiyal617
    @shivanshnautiyal617 ปีที่แล้ว

    Amazing work. Can someone please tell me the calculations to compare with previous month?

    • @vizwiz
      @vizwiz  ปีที่แล้ว

      Same. Just swap out years for months.
      th-cam.com/video/ViD3vclgNv8/w-d-xo.html

  • @lai6503
    @lai6503 3 ปีที่แล้ว +1

    Hi Andy, thanks for the tutorial, super helpful. I have a question at 7:47 when you bring/insert calculation in the title. In my case, after inserting the calculation, say revenue, the actual run out is the revenue from my order start date to end date, rather than the total average like yours. Any help please.

    • @vizwiz
      @vizwiz  3 ปีที่แล้ว +1

      If you're getting a range of numbers, then your LOD is not correct. You need to ensure it only bring back a single number.

    • @lai6503
      @lai6503 3 ปีที่แล้ว

      @@vizwiz Thank you Andy for reply. May I have your help again since my order date range is over one year, and I will to report all date data without showing current year or past year. The date filter is flexible, so how to fix the order date then?

    • @vizwiz
      @vizwiz  3 ปีที่แล้ว +1

      In that case, remove the dimensions from the LOD. You would end up with something like { FIXED : SUM([Sales]) }. That will give you the total sales.

    • @lai6503
      @lai6503 3 ปีที่แล้ว

      @@vizwiz Cheers mate, would possible to show the revenue according to the reporting date/period? As said, there is a filter working on my order date period, so it would be ideal that this calculation can return corresponding revenue figure exactly same as my period filter selected. Your reply on fix the sales, can return total revenue for your information, if can return the data with period filter, then it is perfect.

    • @vizwiz
      @vizwiz  3 ปีที่แล้ว

      Right click on the field in the filter shelf and choose Add to Context.

  • @datapilot89
    @datapilot89 3 ปีที่แล้ว

    Thanks Andy! Just one question, instead of + and - I was trying a top down indicator but doesn't work. Can you help please

    • @vizwiz
      @vizwiz  3 ปีที่แล้ว

      In the custom number format, use the up or down triangle in place of the + and -

  • @gujarmahesh21
    @gujarmahesh21 3 ปีที่แล้ว

    Hey @andy, thanks for sharing the details. I'm trying to create something similar view with the rolling period (1 day, 7 days, 30 days). When I'm trying to put the KPI (selected period) in the title it's showing me the range instead of the whole number for KPI and for previous period % difference same thing is happing, would you be able to suggest me a way out here?

    • @vizwiz
      @vizwiz  3 ปีที่แล้ว

      That means your calculation is returning more than one value. Your LOD needs to only return a single value. So something isn’t correct in the calc.

    • @gujarmahesh21
      @gujarmahesh21 3 ปีที่แล้ว

      @@vizwiz I need to change the KPI value and sparkline based on the rolling period selection (1d, 7d, 30d). If select 1d, the KPI value in the title is reflecting correctly but for 7d and 30d, it is showing me range i.e. lowest value and the highest value on sparkline instead of the total value on KPI. I would love to share the screenshot with you but it's not possible here.

    • @vizwiz
      @vizwiz  3 ปีที่แล้ว +1

      @@gujarmahesh21 Yes, I understand. Again, your LOD is not calculating correctly. Check the dimensions that are in the calc. You shouldn't have any after the fixed. For example, it would be something like {Fixed : Sum(Sales)} and not { Fixed [Order Date] : Sum(Sales)}. Since the first calc doesn't have any dimensions, it'll return one value. The second example will return sales for each date and would display a range in the title.

    • @gujarmahesh21
      @gujarmahesh21 3 ปีที่แล้ว

      @@vizwiz thank you so much,👍

  • @idahopainclinic8762
    @idahopainclinic8762 ปีที่แล้ว

    This is a great video! I have been looking for this. The only question is what would be the formula change if I wanted Prior Month instead of year. Trying to figure it out but haven't cracked it yet...

    • @vizwiz
      @vizwiz  ปีที่แล้ว

      Where I use 'year', you would use 'month'

    • @idahopainclinic8762
      @idahopainclinic8762 ปีที่แล้ว

      @@vizwiz Thank you for your reply. I had tried that earlier but I believe when it gives me the previous month, lets say 'Jan', it gives me all the 'Jan's' in the data set, not just 'Jan 2023'. Do you think that should be the case?

    • @vizwiz
      @vizwiz  ปีที่แล้ว

      @@idahopainclinic8762 make sure you are using the datetrunc function.

  • @baseless24
    @baseless24 3 ปีที่แล้ว

    Great video! i learnt alot from ths just couple of Question ..if my period is from 2019-22 and cy is 2020 how to do single spark line and second one if I am doing balance sheet data i have qtr data but need to show annual data how can i do?

    • @vizwiz
      @vizwiz  3 ปีที่แล้ว

      I do not understand your question...sorry.

    • @baseless24
      @baseless24 3 ปีที่แล้ว

      @@vizwiz If my period range is 2019-2022... but my current year is 2020 can i use same formula ? and balance sheet data are 'as on date' whenever i try to put data on tabelua it take as sum instead of as on date.

    • @baseless24
      @baseless24 3 ปีที่แล้ว

      hope u got my question sorry my english is not so good

  • @briansedaca8170
    @briansedaca8170 2 ปีที่แล้ว

    Hi Andy, this is very helpful. While trying to recreate this for a business case I am getting an annoying error since my measure (# Jobs Completed) is a calculated field that include an Iff statement. Then the error that I get is: Cannot mix aggregate and non-aggregate comparisons or results in IF expressions. Is there a way out of this?

    • @vizwiz
      @vizwiz  2 ปีที่แล้ว +1

      That means that one of your fields is already based on an aggregate calculation. Both parts of the calc need to match. Are you able to share the formula?

    • @briansedaca8170
      @briansedaca8170 ปีที่แล้ว

      I think I have the same issue, when trying to replicate a second KPI with number of clients, using the COUNTD formula to count for the distinct names of clients, I see that the pill when placed into the Marks card already has the AGG in front of it. Below is the formula in case it can help.
      Clients CY
      Role:Continuous Measure
      Type:Calculated Field
      Default aggregation:Sum
      Status:Invalid
      Formula
      {fixed:SUM(if YEAR([Month new])= {MAX(YEAR([Month new]))}
      THEN COUNTD([Ult Parent Name])
      END)}

  • @lovevictor1470
    @lovevictor1470 3 ปีที่แล้ว

    How do you account for fiscal year, when creating the calculated field? Also how do you do month instead of yearly?

    • @vizwiz
      @vizwiz  3 ปีที่แล้ว

      For monthly, swap out where I have year to month. As for fiscal, I don't know. I'd recommend you check the forums. Tableau doesn't make working with fiscal dates in a calc very easy.

  • @AnjaliS-vz2hj
    @AnjaliS-vz2hj ปีที่แล้ว

    Hi,Thanks for this video. I have a doubt on how we can add a calculated field into this latest month sales KPI as i am getting error saying "Cannot mix aggregate and non-aggregate function"

    • @vizwiz
      @vizwiz  ปีที่แล้ว

      That means one of the fields is aggregated and one is not. The LOD needs a SUM around it. Have another look at the video. 👍🏻

  • @saudxkhan
    @saudxkhan 3 ปีที่แล้ว

    Hey, great video. How would I adjust this for Fiscal year?

    • @vizwiz
      @vizwiz  3 ปีที่แล้ว +1

      Change the date properties for the data source to fiscal years.

    • @saudxkhan
      @saudxkhan 3 ปีที่แล้ว

      @@vizwiz Fantastic! Thank you for your quick reply. How about % change YTD vs Previous YTD? (am I asking too many questions lol)

    • @brentvanscoy
      @brentvanscoy 3 ปีที่แล้ว

      @@vizwiz I followed your similar video for YoY without the sparklines, and changing the data source to fiscal year did not have any impact on the date functions. Specifically, the DATETRUNC still returns Jan 1st, not the fiscal year default (April 1 was my test date). Both are incredibly useful if I can figure out how to start it on April 1st (or any other start for a fiscal year). Thanks

    • @fabianom7
      @fabianom7 3 ปีที่แล้ว

      @@vizwiz Thank you! Never noticed this option! This is a game-changer for me!

  • @nadeemraja655
    @nadeemraja655 3 ปีที่แล้ว

    Can we have a video on KRIs analysis?

    • @vizwiz
      @vizwiz  3 ปีที่แล้ว

      I have no idea what KRI analysis is.

  • @orlandoroman9653
    @orlandoroman9653 3 หลายเดือนก่อน

    This is great. But what if I'm using other columns as filter? The FIXED calculations won't change. At least my current understanding. What are my options when filters are needed to change the KPI values?

    • @vizwiz
      @vizwiz  2 หลายเดือนก่อน

      Add those filters to context if you want them to affect the FIXED LOD.

  • @daitan4892
    @daitan4892 3 ปีที่แล้ว

    Hey Andy, what should i do if the sales is for 2 companies and i want to use only one company's sales? Do i put an extra "if" function in front of the formula you showed for sales CY? e.g. IF (Company = "(name of company") THEN {fixed.....

    • @vizwiz
      @vizwiz  3 ปีที่แล้ว +1

      I would add the company to the filter shelf and then add the filter to context.

    • @daitan4892
      @daitan4892 3 ปีที่แล้ว

      @@vizwiz Thanks for the advice, but what if i want to create sparklines only for the years, do i still have to create the "Last 12 months calculated field" using the "DATETRUNC" function?

  • @neilmaclellan3591
    @neilmaclellan3591 2 ปีที่แล้ว

    Hi Andy, I was wondering if you could explain the difference between MAX(YEAR([Order Date]))-1 and {MAX(YEAR([Order Date]))}-1. Thanks

    • @vizwiz
      @vizwiz  2 ปีที่แล้ว

      Great question Neil! MAX(YEAR([Order Date])) get the year of each individual row in the data set. Wrapping that in { } turns it into a Level of Detail expression, which, in Tableau, the calc runs BEFORE the row level calculation. Therefore, it runs the overall maximum year. In other words, it looks across all of the rows and then brings back to largest year. The minus 1 simple subtracts one from that result.
      Here's an article on Tableau's website about the Order of Operations - help.tableau.com/current/pro/desktop/en-us/order_of_operations.htm
      Here's a nice diagram of the Order of Operations on The Data School blog - www.thedataschool.co.uk/harry-cooney/tableaus-order-of-operations
      There are also lots of blogs on The Data School website with LOD examples and explanations. Go to www.thedataschool.co.uk/blog and search for Order of Operations.

  • @apaumichael954
    @apaumichael954 2 ปีที่แล้ว

    Hi Andy I realised the CY sales was static and the %change too. That’s understandable since we considering months and those values are looking at years.
    Assume I am using the last 12 years instead of months in my viz and I have my CY sales and % change calculated, I expect my sheet names to changing (dynamic) whiles I jump from one year to the other on the line chart. How can I make these figures dynamic to reflect in the sheet name and even in the tooltip please. Thanks.

    • @vizwiz
      @vizwiz  2 ปีที่แล้ว +1

      The CY sales is not static. If data gets added for the next year, the data will update automatically.

    • @apaumichael954
      @apaumichael954 2 ปีที่แล้ว

      @@vizwiz Thanks but it’s not working out for me .

  • @velevki
    @velevki 3 ปีที่แล้ว

    Is there a way to make the title change color conditionally based on the YoY comparison? If it is negative, make the chart title red. If it is positive, then make the chart title green.

    • @vizwiz
      @vizwiz  3 ปีที่แล้ว

      Yes. You would need one calc for a positive value and another for negative. They should each return null for the opposite condition. Place then next to each other in the title and color the font.

    • @velevki
      @velevki 3 ปีที่แล้ว

      @@vizwiz Am I creating two separate calculated fields and using them in the Title?

    • @vizwiz
      @vizwiz  3 ปีที่แล้ว

      Yes

    • @velevki
      @velevki 3 ปีที่แล้ว

      Done. Thank you!

  • @konstantinzanikov1849
    @konstantinzanikov1849 3 ปีที่แล้ว

    Hi, this is great! I have an issue trying to replicate this in table view in detail for specific regions, for this case all calculated measure shows same values, seems that is it ignoring slicing by regions, is there any way how to adjust calculations to account for slicing by different dimensions?

    • @vizwiz
      @vizwiz  3 ปีที่แล้ว

      You need to have the Region field in your LOD if you want to slice it by region.

  • @makarandsahasrabuddhe5029
    @makarandsahasrabuddhe5029 3 ปีที่แล้ว

    How to download dataset?

    • @vizwiz
      @vizwiz  3 ปีที่แล้ว +1

      It uses Superstore that comes with Tableau.

  • @panjetan1322
    @panjetan1322 ปีที่แล้ว

    urgent help needed.
    i want to calculate these for number of bookings and total revenue, but these are calculated fields not the ones coming from data base. it is not showing correct answers for calculated fields. I am unable to fix Sales CY with this formula

    • @vizwiz
      @vizwiz  ปีที่แล้ว

      Aren't total revenue and sales the same? As for bookings, replace sales with bookings.

  • @vanikaedward1793
    @vanikaedward1793 2 ปีที่แล้ว

    Our FY year starts in Apr and ends in Mar. in this case do I need to do anything specific to avoid data picking up from Jan to Dec ? I have explore right and not creator rights

    • @vizwiz
      @vizwiz  2 ปีที่แล้ว +1

      You can change the default month start of the year for any date field. Right click on the date field and choose date properties. The setting is there.

  • @xiaoweima660
    @xiaoweima660 3 ปีที่แล้ว

    I tried to put some variables in the title of a plot/graph ,but those variable's values are displayed as a value range , but your video shows only one number, why I am not able to replicate your results ?

    • @vizwiz
      @vizwiz  3 ปีที่แล้ว

      That means your calculation is returning more than one number. In the video, I show you how to use a LOD to return it as a single number.

    • @xiaoweima660
      @xiaoweima660 3 ปีที่แล้ว

      @@vizwiz thanks a lot

  • @tomericsson3379
    @tomericsson3379 3 ปีที่แล้ว

    How does this work with months when they cross a year? FIXED : SUM(IF YEAR([Date]) = {MAX(YEAR([Date]))} would return 202012 as true instead of 202101

    • @vizwiz
      @vizwiz  3 ปีที่แล้ว

      The function you have written will always return the latest year that exists in the data set. If you wanted it to always be the current year, you would write it as {MAX(Year(Today())}.

    • @tomericsson3379
      @tomericsson3379 3 ปีที่แล้ว

      @@vizwiz Thanks! The issue is that I have multiple years in the dataset and I'm trying to display a monthly sparkline. If I write the function as { FIXED : SUM(IF MONTH([Date]) = {MAX(MONTH(TODAY()))} then it will sum all January data rather than just 2021/01. If I write it as { FIXED : SUM(IF MONTH([Date]) = {MAX(MONTH([Date]))} it will return December as it does not have context of the current year. Any pointers are appreciated.

    • @vizwiz
      @vizwiz  3 ปีที่แล้ว +1

      @@tomericsson3379 ah yes! That's because you're using MONTH([Date]) which only returns the month number. If you want the latest month, use the formula:
      DATETRUNC('month',[Date]) = {MAX(DATETRUNC('month',[Date])}
      The datetrunc returns the month and year, whereas MONTH only returns the month number (i.e., 1 through 12).

    • @tomericsson3379
      @tomericsson3379 3 ปีที่แล้ว +1

      Got it. { FIXED : SUM(IF DATEDIFF('month',DATETRUNC('month',[Date]), {MAX(DATETRUNC('month',[Date]))})=0