STOP Using Power BI Default Cards - DO This Instead!

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

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

  • @petercompton538
    @petercompton538 Месяц назад

    Excellent tutorial - thanks

    • @MMS-PowerBI
      @MMS-PowerBI  Месяц назад

      You are welcome! I'm very happy that you enjoyed it!

  • @Doc-y6m
    @Doc-y6m Месяц назад +3

    Thanks for tutorial, I had vision I was suppose to work with Power bi and excel and all of sudden I am doing this like I have done it before. I never even heard of this app until I meet someone at my new job that was using it, then that triggered my vision. I love power bi and to become data analyst. I have been working as IT support in a few warehouses over 20 years. I will watch all your videos.

    • @MMS-PowerBI
      @MMS-PowerBI  Месяц назад

      Thank you very much! I'm glad you enjoyed this tutorial, and I know this is the beginning of a very beautiful journey for you!

  • @cecilhughes1
    @cecilhughes1 4 дня назад +1

    This video is Super Dope! Really appreciate you sharing these insights...

    • @MMS-PowerBI
      @MMS-PowerBI  4 дня назад

      I'm glad you enjoyed it! There's a new video coming in about 2 hours on the new text slicer that I have a feeling you might like aswell 😀

  • @yaminaazri
    @yaminaazri 3 дня назад +1

    Excellent !! Thank you

    • @MMS-PowerBI
      @MMS-PowerBI  3 дня назад

      You're welcome 😊 I'm glad you enjoyed it!

  • @souravkarmakar7601
    @souravkarmakar7601 10 дней назад +1

    Great video appreciate your efforts but i have one doubt if you take year as 365 days hadcoded in that case during leapyear year consist of 366 days in that case one days sales data would be missing and would give incorrect sales sums

    • @MMS-PowerBI
      @MMS-PowerBI  10 дней назад +1

      You are correct, and I've changed the calculation for the YoY calculation video, using the DATE function and adding or subtracting one year.

    • @souravkarmakar7601
      @souravkarmakar7601 10 дней назад

      @MMS-PowerBI could you please share the code?

  • @barttrudeau9237
    @barttrudeau9237 Месяц назад +1

    Really well done!

    • @MMS-PowerBI
      @MMS-PowerBI  Месяц назад

      Thank you very much 😊.
      I'm very happy that you enjoyed it.

  • @manojkumar-ri6xb
    @manojkumar-ri6xb Месяц назад +1

    excellent and very useful

    • @MMS-PowerBI
      @MMS-PowerBI  Месяц назад

      I am glad you think so and I hope it will give you a starting point to create your own KPI cards.

  • @powerbinareal
    @powerbinareal 3 дня назад +1

    Muito bom ! #powerbinareal

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

    This somewhat seems complex. I was talking about the usage of new KPI card which has some great in-built features in it. But anyway thanks for the tutorial :)

    • @MMS-PowerBI
      @MMS-PowerBI  2 месяца назад

      First of all thank you very much for watching the video.
      Yes, there is a way of using the New Card visual, but that would involve using svg images and creating the measure for those would be even more complex, and I've tried to keep this tutorial accessible for the beginners as well.
      But, as we speak I am recording a video on how to create a KPI card with the sparkline to the right of the KPI, and maybe you will enjoy that one as well. It will be live around Thursday, next week.

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

      @@MMS-PowerBI Thank you so much Stellion 🧿

  • @Doc-y6m
    @Doc-y6m Месяц назад

    Where do I get the date Table. I got total sales by month on order date table. seems to work that way too anyways

    • @MMS-PowerBI
      @MMS-PowerBI  Месяц назад

      In this video you can find the M code that I used:
      ruclips.net/video/7qaIavKCaoI/видео.htmlsi=25EG71sHgiYBK43Y
      It should be the final chapter.

  • @ncalc2261
    @ncalc2261 Месяц назад +1

    How is DATE TABLE created?

    • @MMS-PowerBI
      @MMS-PowerBI  Месяц назад

      I have a video on the channel where you can see how to get the exact same date table.
      This is the link: ruclips.net/video/7qaIavKCaoI/видео.html

  • @mazchen
    @mazchen Месяц назад +3

    14:13 or you just use ABS(YoY %) instead.

    • @MMS-PowerBI
      @MMS-PowerBI  Месяц назад

      Yes, definitely. I was so absorbed by using the negation of the negative that I missed the best (and most elegant) solution.
      Thank you for pointing it out!

  • @suhail9718
    @suhail9718 Месяц назад

    How to add this ?

    • @MMS-PowerBI
      @MMS-PowerBI  Месяц назад

      What do you need to add and where?

    • @suhail9718
      @suhail9718 Месяц назад

      @@MMS-PowerBI when I add this visual in my dashboard. It is not opening

    • @MMS-PowerBI
      @MMS-PowerBI  Месяц назад

      This is very weird, because it is a standard line chart, and all I did was to o use a custom a title and subtitle. It should work with the most recent version of Power BI Desktop.

    • @martinbubenheimer6289
      @martinbubenheimer6289 Месяц назад

      I like your approach! Looking at your code I have some doubts with correct leap year handling. Is there a reason why you avoid DAX time intelligence functions to do the date range calculations?

    • @MMS-PowerBI
      @MMS-PowerBI  Месяц назад +1

      Thank you.
      I addopted this way of calculating the YoY % because my dataset does not include sales data for the whole year, and I've noticed that SAMEPERIODLASTYEAR does not consider that. I have noticed that when you have incomplete years and you want to return a year over year growth for the exact period of both years (anything other than that I don't consider as YoY), then the regular dax functions return wrong results.
      Yes, I could have used DATESBETWEEN to set the dates range, but (personally) I believe it does not make that much of a difference. I may very well be wrong on this :)

  • @herculesgixxer
    @herculesgixxer Месяц назад +1

    Brilliant thank you

    • @MMS-PowerBI
      @MMS-PowerBI  Месяц назад

      You're very welcome!
      I'm glad you enjoyed it.

  • @dutchinfluencer
    @dutchinfluencer Месяц назад +1

    Using 365 as a number of days value is giving me an error 😂 Beside that, isn't it easier using sameperiodlastyear?
    What is different from using:
    var filteredyearsales = SUM(Sales[lineValue])
    var yearbeforesales = CALCULATE(SUM(Sales[lineValue]), SAMEPERIODLASTYEAR('Date Table'[date]))
    To get the values? Maybe it's late and I don't get it 😅

    • @MMS-PowerBI
      @MMS-PowerBI  Месяц назад +2

      Hi there.
      I usually consider YoY growth only on the same period of both years.
      So, let's consider this scenario:
      1. The previous year records start on 1st of July and the current year ends today, 23rd of October.
      2. Total sales PY = 1.11M (01/07/23 to 31/12/2023) (calculated using SAMEPERIODLASYEAR), Total sales CY = 3.21M (01/01/24 to 23/10/24).
      Your 188.49% YoY growth in this case is incorrect, because the two periods are not the same. There is the period between 1/01 to 01/07 where there is no data in '23 but there is in '24, and there is the period between 24/10 and 31/12 where there is data in '23 but not in '24.
      And that's why I calculate the minimum date of 01/07 for both years and the maximum date of 23/10 for both years. In this case the total sales would look like Total sales PY = 1.05M Total sales CY = 1.16M (01/01/24 to 23/10/24), returning the 10.24% YoY growth.
      I hope this answers your question.
      Anyway, please let me know if you think there is something wrong with my logic, because at the end of the day I might be wrong myself :)

    • @dutchinfluencer
      @dutchinfluencer Месяц назад +1

      @@MMS-PowerBI ah, I understand! Thanks for the explanation

    • @ExcelAutomationHub
      @ExcelAutomationHub 29 дней назад

      ​@@MMS-PowerBI Hi, how can we account for years with 366 days in the measure? I’d really appreciate your feedback.

    • @MMS-PowerBI
      @MMS-PowerBI  28 дней назад +1

      I have realised this whilst recording the next weeks video, because I was looking at 29th of February 2024 in my date table :).
      So I will change my calculation by using the date function.
      Anyway, I hope that on this Thursday I'll be able to publish a video that explains why I calculate my YoY% like that.