Filter between Dimension Tables | CALCULATE function Trick!

  Рет қаралды 40,045

Goodly

Goodly

Күн бұрын

Пікірлер: 56
@magansachdeva8488
@magansachdeva8488 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)?
@fildude
@fildude Жыл бұрын
very nice and straightforward! thank you!
@markhenderson3771
@markhenderson3771 Жыл бұрын
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.
@wayneedmondson1065
@wayneedmondson1065 3 жыл бұрын
Awesome Chandeep! Thanks for this interesting lesson. Thumbs up!!
@BISimplifier
@BISimplifier Жыл бұрын
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 9 ай бұрын
Really?
@asad512
@asad512 3 жыл бұрын
Lots of thanks for your support
@teigenxayden
@teigenxayden 9 ай бұрын
IS the usage of expanded table to solve the reverse filter?
@muhammadsadiq2330
@muhammadsadiq2330 Ай бұрын
is your course available in Hindi? plz, share course details and price.
@sashawhittaker6141
@sashawhittaker6141 2 жыл бұрын
well done, well explained, thanks!
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Glad you enjoyed it!
@radon8452
@radon8452 Жыл бұрын
Can I just set all the relationships in both directions in the diagram view? Is it a good idea? Its working fine
@mitultank7872
@mitultank7872 2 жыл бұрын
From where you get the data.? Please share the link
@aijaz4441
@aijaz4441 Жыл бұрын
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?
@ahmed007Jaber
@ahmed007Jaber 4 ай бұрын
thank you for this. i have a table that contains a sequence from 1 to 10. this table isn't linked to any other table and those values aren't references in any table i want to use this so that i can add it in a filter and based on my choice my measures calculation would change. in so far it seems it doesn't work. any ideas how to make it work? just add it to any measure and say * but the input of that table. what do you think?
@mr.k2430
@mr.k2430 Жыл бұрын
Excellent!
@hamnaanwar3651
@hamnaanwar3651 Жыл бұрын
just what i was looking for, thanks!
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Glad I could help!
@sarveshdeshpande1772
@sarveshdeshpande1772 Ай бұрын
Can’t we use crossfilter dax ??
@GoodlyChandeep
@GoodlyChandeep Ай бұрын
yes we can
@aryansena7290
@aryansena7290 3 жыл бұрын
Hi, Can we get a workaround that measure can be used as page level filter. Thanks in advance.
@pankajroshan
@pankajroshan 2 ай бұрын
What if, we have to create a simple visual where get all customer who are active in year =2005. Since in this case we don’t need to create any measure how we will achieve it and time dimension and customer table are not linked. Can you help?
@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
@aliaziz2461
@aliaziz2461 2 жыл бұрын
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?
@hamidbahari6588
@hamidbahari6588 3 жыл бұрын
Thanks For Sharing.
@vrk5710
@vrk5710 2 жыл бұрын
How do you display all rows side by side in a matrix visual without using Index column?
@noahhadro8213
@noahhadro8213 3 жыл бұрын
is this faster than using something light "treatas" on just a specific column"
@ankitmonga4318
@ankitmonga4318 3 жыл бұрын
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?
@kennethstephani692
@kennethstephani692 2 жыл бұрын
Great video!
@joanna9348
@joanna9348 3 жыл бұрын
Amazing, as always :)
@anindadatta164
@anindadatta164 5 ай бұрын
could you create a real table of unique customers by "value" function, and then do sumx on the same by relating it with customers(random salary)
@sujit3375
@sujit3375 Жыл бұрын
Please show us how fact table filters dim table in background
@grahamlindsay9798
@grahamlindsay9798 2 жыл бұрын
Excellent.
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Thanks 😊
@sahrashshaqeeb9400
@sahrashshaqeeb9400 3 жыл бұрын
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 :)
@FRANKWHITE1996
@FRANKWHITE1996 3 жыл бұрын
Thanks for sharing! 👍
@ramanhakimipour4522
@ramanhakimipour4522 3 ай бұрын
If we replace averagex with sumx it should fix incorrect one
@JisJ91
@JisJ91 Жыл бұрын
Great why don’t you start Crete a Wtsup group for direct interaction
@MrRohanroxx1
@MrRohanroxx1 3 жыл бұрын
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 7 ай бұрын
Hi there! I have same question. Did you figure it out? thanks.
@KgasS
@KgasS Жыл бұрын
The concept behind this is expanded table...
@idonjohnson6999
@idonjohnson6999 Жыл бұрын
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.
@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
@AgulloBernat
@AgulloBernat 3 жыл бұрын
So you don't need to use CROSSFILTER function?? That's odd!
@vijayaragavankrishnamoorth6155
@vijayaragavankrishnamoorth6155 2 жыл бұрын
Hi Bernat, I also think, that why we are not using cross filter ? Have you tried this calculation with cross filter ? Is it giving same result.
@vijayaragavankrishnamoorth6155
@vijayaragavankrishnamoorth6155 2 жыл бұрын
@bernat agullo
@SUDHIRKUMAR-cr9zs
@SUDHIRKUMAR-cr9zs 2 жыл бұрын
Thanks a lot Sir....... But you explain very fast...
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
💚
@EdwinVeenboer
@EdwinVeenboer 2 ай бұрын
In your correct measure, you dont specify you need unique customers salary. How is it not giving the same result as your wrong dax?
@janwillemvanholst
@janwillemvanholst 3 жыл бұрын
The definitive guide to DAX 2nd edition page 143: 'you should avoid table filters because they usually are more expensive'
@GoodlyChandeep
@GoodlyChandeep 3 жыл бұрын
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 3 жыл бұрын
@@GoodlyChandeep Thanks. I will have a look.
@TheCraigie007
@TheCraigie007 3 жыл бұрын
@@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 3 жыл бұрын
@@GoodlyChandeep I used the wrong quote. It should have been page 448 '...it is better to avoid using table filters in CALCULATE statements,...'
Getting Started with Calculation Groups in Power BI
23:09
Goodly
Рет қаралды 36 М.
Context Transition in Power BI and Tricky Examples
15:06
Goodly
Рет қаралды 45 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 51 МЛН
Lamborghini vs Smoke 😱
00:38
Topper Guild
Рет қаралды 69 МЛН
Don't make these CALCULATE Function Mistakes! ⚠️
10:09
Expanded Table - The Whiteboard #04
14:02
SQLBI
Рет қаралды 14 М.
Solving errors in CALCULATE filter arguments
30:55
SQLBI
Рет қаралды 30 М.
The Dimensional Dilemma and Power BI
19:35
Paul Turley
Рет қаралды 8 М.
Filter columns, not tables, in DAX
20:37
SQLBI
Рет қаралды 14 М.
Next level FILTER Function tricks | Excel Off The Grid
13:23
Excel Off The Grid
Рет қаралды 34 М.
Fix Blank Values in Power BI
11:15
Goodly
Рет қаралды 9 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН