Tricky Snowflake Schema Calculations in Power BI || A Step-by-Step Guide

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 มิ.ย. 2024
  • Related and RelatedTable in DAX - • Related and RelatedTab...
    In this video, we will explore the nuances of working with snowflake schemas and creating calculations between tables.
    While the results may initially seem correct, they can often be incorrect due to the nature of the snowflake schema. We discuss how to validate and fix these calculations, ensuring accurate data analysis.
    #datamodeling #powerbi #powerbitutorial #dataanalytics
    ===== ONLINE COURSES =====
    ✔️ Mastering DAX in Power BI -
    goodly.co.in/learn-dax-powerbi/
    ✔️ Power Query Course-
    goodly.co.in/learn-power-query/
    ✔️ Master Excel Step by Step-
    goodly.co.in/learn-excel/
    ✔️ Business Intelligence Dashboards-
    goodly.co.in/learn-excel-dash...
    ===== LINKS 🔗 =====
    Blog 📰 - www.goodly.co.in/blog/
    Corporate Training 👨‍🏫 - www.goodly.co.in/training/
    Need my help on a Project 💻- www.goodly.co.in/consulting/
    Download File ⬇️ - goodly.co.in/mastering-snowfl...
    ===== CONTACT 🌐 =====
    Twitter - / chandeep2786
    LinkedIn - / chandeepchhabra
    Email - goodly.wordpress@gmail.com
    ===== WHO AM I? =====
    A lot of people think that my name is Goodly, it's NOT ;)
    My name is Chandeep. Goodly is my full-time venture where I share what I learn about Excel and Power BI.
    Please browse around, you'd find a ton of interesting videos that I have created :) Cheers!
    #SnowflakeSchema #DAXCalculations #PowerBIDataAnalysis #SnowflakeSchemaTutorial #PowerBITips #PowerBIAdvanced
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @GoodlyChandeep
    @GoodlyChandeep  6 หลายเดือนก่อน +1

    Check out the Related function in DAX video ▶ - th-cam.com/video/6BdnQS-hZvw/w-d-xo.htmlsi=owDSoBp8N42e28nX
    Download the file ⬇ - goodly.co.in/mastering-snowflake-schema-calculations-power-bi

  • @tak0331
    @tak0331 6 หลายเดือนก่อน +19

    Hi Chandeep, at the 4:00 timestamp, you filtered to Jul-11 when you meant to select Jun. Not a huge deal as I can see Jul-11 also had an error in SUM from the original DAX formula.
    Great explanation & solution. Thanks!

    • @datayoda74
      @datayoda74 6 หลายเดือนก่อน +2

      Excellent work
      😊

    • @mdandekar
      @mdandekar 6 หลายเดือนก่อน +2

      Was wondering the same…!

    • @juja2819
      @juja2819 6 หลายเดือนก่อน +1

      Was wondering about the same, but I think the explanation is to find at the 6:45 timestamp. It doesn't matter wich month is filtered at 4:00!?

    • @tak0331
      @tak0331 6 หลายเดือนก่อน

      @@juja2819 Agreed

    • @GoodlyChandeep
      @GoodlyChandeep  6 หลายเดือนก่อน +5

      I was too engrossed to mis-select the filter but luckily it worked 🤣🤣

  • @aartdevletter5822
    @aartdevletter5822 6 หลายเดือนก่อน +1

    My man… U have no idea how often I am going to use this. Not just to really USE it, but now a lot of other stuff also suddenly makes sense… ❤

  • @learnexcelwithfun4716
    @learnexcelwithfun4716 6 หลายเดือนก่อน

    Brother, I appreciate the straightforward explanation. You're truly invaluable.

  • @TOV-zc9bp
    @TOV-zc9bp 6 หลายเดือนก่อน

    Well explained, straightforward and to the point. Thanks!

  • @RyanGaroogian
    @RyanGaroogian 6 หลายเดือนก่อน

    Great video very clear and smart to create secondary relationships that are not active and then call them specifically on specific DAX queries.

  • @chrism9037
    @chrism9037 6 หลายเดือนก่อน

    Excellent, thanks Chandeep!

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

    Very informative! Keep up the good content!

  • @Jahspecs1
    @Jahspecs1 6 หลายเดือนก่อน

    Excellent video! Thanks!

  • @mishymoo34
    @mishymoo34 6 หลายเดือนก่อน +1

    Looking for an excuse to use this idea in the future!
    Thanks Chandeep.

  • @daxteoh27
    @daxteoh27 6 หลายเดือนก่อน

    Love the explanation!

  • @Nalaka-Wanniarachchi
    @Nalaka-Wanniarachchi 6 หลายเดือนก่อน

    Nicely explained. love it

  • @juja2819
    @juja2819 6 หลายเดือนก่อน

    Awesome, thank you! :)

  • @gennarocimmino
    @gennarocimmino 6 หลายเดือนก่อน

    a big Thamks for the sharing of tutorial

  • @arbazahmad7177
    @arbazahmad7177 6 หลายเดือนก่อน

    Excellent..🎉

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

    Great use case 👌 More tutorials like this please

  • @sanumpzha
    @sanumpzha 6 หลายเดือนก่อน

    Nice one Chandeep.

  • @faxfax13
    @faxfax13 6 หลายเดือนก่อน

    Awesome 😆

  • @dilipinamdarpatil6301
    @dilipinamdarpatil6301 6 หลายเดือนก่อน

    Thank you 🙏

  • @mathew9665
    @mathew9665 6 หลายเดือนก่อน

    Great comunication here - This is fundermental chaps - you need to ensure you use this process - even if there are multipule dates needing reporting the same fact table that need reporting

  • @shoaibrehman9988
    @shoaibrehman9988 6 หลายเดือนก่อน

    Superb

  • @fog2640
    @fog2640 6 หลายเดือนก่อน

    Finished watching

  • @RogerStocker
    @RogerStocker 6 หลายเดือนก่อน +2

    3:53 You choose July instead of June in the refund table.

  • @RawShooters
    @RawShooters 2 หลายเดือนก่อน +1

    while checking the refund there was a little confusion July instead of June?

  • @raf9840
    @raf9840 6 หลายเดือนก่อน

    Nice vid, question: wouldnt change it to both directions filtering in the relationship also work in this case?

  • @soumyendupaul9556
    @soumyendupaul9556 6 หลายเดือนก่อน +1

    As per my understanding Snowflake schema contains only Normalized Dimension table but I got confused to know that even it may contain normalized fact table also. Could you share any document on this?

  • @royegd5679
    @royegd5679 6 หลายเดือนก่อน

    wow.....

  • @sajjad5189
    @sajjad5189 6 หลายเดือนก่อน

    Hi, @8:55 the scope is limited to this measure only and not 'whenever we use calendar date in filter context' of any visual. Just a suggestion to be more specific.

  • @hussainmeghani4809
    @hussainmeghani4809 6 หลายเดือนก่อน

    Sir...pls help
    Sir, while click on content... Detail displayed but file name column remove.... How to fix the problem... I am extract csv format file through power query

  • @andrescorredor7517
    @andrescorredor7517 6 หลายเดือนก่อน

    Nice video and explanation. is there any performance degradation using this strategy?

    • @GoodlyChandeep
      @GoodlyChandeep  6 หลายเดือนก่อน +1

      Not that I have faced

  • @vdj6298
    @vdj6298 6 หลายเดือนก่อน

    Thank you for your videos. 2 Questions:
    1. May I ask why you didn't create a transaction ID table in Power Query, then used it along with your your date table to separately connect to the Sales & Refund tables, using the new transaction ID field in the new table in your visuals?
    2. Is there a benefit to creating your calendar table in DAX as opposed to Power Query?

    • @GoodlyChandeep
      @GoodlyChandeep  6 หลายเดือนก่อน +1

      Even if you do point 1, it won't help take the filters from the products or sales to refunds (in a one to many relationship format). Plus it makes the model unnecessarily complicated.
      I mostly create date table in power query but I used DAX for this one :)

  • @findthetruth3021
    @findthetruth3021 6 หลายเดือนก่อน

    Hi, I have a very difficult question and I searched through the Google and chatgpt and everywhere but couldn't find a solution for that. I have an idea to combine two different maps one is going to be in shape file and the other one is going to be point map. So my idea is to make the background of the point map transparent and only leave the points by latitude and longitude so that I can make a group of points by latitude and longitud with the shaple file map and putting the points by latitude and longitud over the shape file. Finally, make them on group which will appear like that I have both shaple file plus points by latitude and longitud together. But until now I couldn't find a solution how to remove or make the point map background transparent or without having any colour except the points by latitude and longitud. Please help me in this regard. Thanks in advance.

  • @bulbulahmed3098
    @bulbulahmed3098 6 หลายเดือนก่อน

    ❤❤❤

  • @SamanthaLAI-ok6vd
    @SamanthaLAI-ok6vd หลายเดือนก่อน

    This problem happens also when you merge 2 tables in power query as well

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

    or June Sale refund in July?

  • @abdelkaioumbouaicha
    @abdelkaioumbouaicha 6 หลายเดือนก่อน

    📝 Summary of Key Points:
    📌 Snowflake schemas are a type of relationship called a fact of a fact relationship, which presents challenges when creating calculations in Power BI.
    🧐 The speaker's goal is to calculate the total number of units refunded, but they encounter a discrepancy in the results when filtering by month due to transactions being sold in one month but refunded in another.
    🚀 The speaker suggests two approaches to solve this problem: deleting the relationship between the refunds table and the sales table and creating a new relationship directly between the refund date and the calendar date, or creating an inactive relationship between the refund date and the calendar date and modifying the calculation using the CALCULATE function and the secondary relationship.
    💡 Additional Insights and Observations:
    💬 "The relationships between the tables propagate filter context, which can lead to discrepancies in calculations when dealing with snowflake schemas."
    📊 No specific data or statistics were mentioned in the video.
    🌐 The speaker mentions their DAX, M language, and Power Query courses for those interested in learning more about Power BI.
    📣 Concluding Remarks:
    This video provides insights into dealing with snowflake schemas and fact of a fact relationships in Power BI. It highlights the challenges of calculating values between tables with different granularities and demonstrates how to validate and fix the calculations. The speaker also mentions their courses for those interested in further learning.
    Generated using Talkbud (Browser Extension)

  • @Sumanth1601
    @Sumanth1601 6 หลายเดือนก่อน +1

    3:58, you selected july instead of june

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

    Your courses are too expensive please think about students or working professional who are from India also 🙏

  • @cjs313313
    @cjs313313 6 หลายเดือนก่อน +1

    The underlying data model is BAD. You don’t join ‘facts to facts’. The refund fact table should look just like the sales table. If you have one record per item sold in the Sales fact, you should have one item per refund in the Refund fact table. That is, they should be at the same grain. Some might argue that both your sales and refunds should (and can) be in the same table. Your refund table makes no sense. Jumping through all of this hoops in Power BI creates technical debt. Difficult to understand and maintain. You’re doing your viewers a disservice by demonstrating this. Fix it in the data model.

    • @NX7one
      @NX7one 4 หลายเดือนก่อน

      I suppose in the real word the Sales table would have one record per item which would allow the 2 facts to be merged. You don't always choose the data you work with though, you would probably design the same data model if you had to use the tables as they are presented in the video. 'You don't join facts to facts' - I see this statement quite often but I don't fully understand it, could you explain how would you model a many-to-many Order-Invoice relationship without joining the facts together via a bridge table?

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

      Sry, this is total bullshit theory based on theories from MS and other sites or books, sometimes u have to join them. Theory and reality is way different, based on years of experience. Data and business reality doesn’t match theories. Connecting with same dimmensions, denormalizing etc…yeah and at the end u have to write ton la of code to kill cartessians, crossjoins and all this terrible stuff.