Filter between Dimension Tables | CALCULATE function Trick!

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 มิ.ย. 2024
  • Here is a nifty CALCULATE function trick to filter between dimension tables or apply a reverse filter from a fact to a dimension table.
    Enjoy!
    - - - - My 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...
    - - - - Blog - - - -
    goodly.co.in/blog
    ---
    Artist Attribution
    Music By: "After The Fall"
    Track Name: "Tears Of Gaia"
    Published by: Chill Out Records
    - Source: goo.gl/fh3rEJ​
    Official After The Fall TH-cam Channel Below
    th-cam.com/channels/GQE.html...
    License: Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
    Full license here: creativecommons.org/licenses
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @fildude
    @fildude 8 หลายเดือนก่อน

    very nice and straightforward! thank you!

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

    Lots of thanks for your support

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

    Awesome Chandeep! Thanks for this interesting lesson. Thumbs up!!

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

    Thanks for sharing! 👍

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

    Amazing, as always :)

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

    Thanks For Sharing.

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

    Great video!

  • @mr.k2430
    @mr.k2430 10 หลายเดือนก่อน

    Excellent!

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

    just what i was looking for, thanks!

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

    well done, well explained, thanks!

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

    Amazing video, Thanks for sharing.
    Just a quick question in terms of Performance -
    It is said - to not use a table as filter, Can we optimize this by using one column filter (key column)?

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

    Excellent.

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

    Good One.
    The trick here is even though you filter by entire sales table DAX engine internally convert this only for filter by customer key in sales table which filters by unique customers.

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

      Really?

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

    Hi, Can we get a workaround that measure can be used as page level filter. Thanks in advance.

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

    hi, awsome technique which is still i still never read even in books. one thing i want to ask is this measure show values after applying RLS?

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

    Thank you! I cannot seem to apply your example to mine. I have two dimension tables: Owners and Customers, and one Fact table: Transactions. Customers is related to Transactions by Customer Number. (Each Customer has an Owner. Owners can own many customers.) I am trying to count the number of Owners whose Customers have at least one transaction on the Transactions table.

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

    Perfect video! but in case if you would like to know - the way you pronounce Year word in English language actually means body part (parts that listen ear) just decided to say it in order to help you improve

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

    How do you display all rows side by side in a matrix visual without using Index column?

  • @radon8452
    @radon8452 10 หลายเดือนก่อน

    Can I just set all the relationships in both directions in the diagram view? Is it a good idea? Its working fine

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

    IS the usage of expanded table to solve the reverse filter?

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

    The concept behind this is expanded table...

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

    Hey, I just tried to open the sample file, however, the link took me on some invalid side where I could not download it. Could you please suggest the way to get it?

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

    From where you get the data.?
    Please share the link

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

    is this for programming or accounting, what field is this?

  • @aijaz4441
    @aijaz4441 9 หลายเดือนก่อน

    Hi Chandeep. I am still not able to understand how the DAX formula works. How are the duplicates not accounted for in the correct formula?

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

    Please show us how fact table filters dim table in background

  • @idonjohnson6999
    @idonjohnson6999 11 หลายเดือนก่อน

    So using the obvious/easiest/shortcut....set relation crossfilter to both and a filter on the fact table, filters all the dimensions that are also set both.

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

    is this faster than using something light "treatas" on just a specific column"

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

    I just had one doubt
    With your total sales correct measure
    After the filter context is applied won't the sales table still have duplicate customer keys ?
    Because in dax studio you used values to remove the duplicates
    So how is measure functioning correctly then ?

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

      Hi there! I have same question. Did you figure it out? thanks.

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

    Hi Brother, suppose i want account names that have NOT responded in the last 30 days? or say I want names of accounts that have not been active in last 30 days. How to get that data .. pls help Goodly :)

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

    Great why don’t you start Crete a Wtsup group for direct interaction

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

    SHIT you kidding! how this was never mentioned in any documentation!
    thanks a lot!

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

      Glad it was helpful!

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

      @GoodlyChandeep please if you can make more use cases like ranking or market share using this method, would be grateful

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

    The definitive guide to DAX 2nd edition page 143: 'you should avoid table filters because they usually are more expensive'

    • @GoodlyChandeep
      @GoodlyChandeep  2 ปีที่แล้ว +4

      Hi Jan, this isn't same as iterating each row of the Sales table over a FILTER Function.
      I am just leveraging the relationship between the Customers and Sales Table by this trick.
      This should clarify it further - www.daxpatterns.com/related-distinct-count-excel-2013/

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

      @@GoodlyChandeep Thanks. I will have a look.

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

      @@janwillemvanholst I think here we are looking here at 'Expanded Tables'. A core DAX concept which Alberto & Marco explore in the Definitive Guide.

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

      @@GoodlyChandeep I used the wrong quote. It should have been page 448 '...it is better to avoid using table filters in CALCULATE statements,...'

  • @SUDHIRKUMAR-cr9zs
    @SUDHIRKUMAR-cr9zs 2 ปีที่แล้ว

    Thanks a lot Sir....... But you explain very fast...

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

    So you don't need to use CROSSFILTER function?? That's odd!