) would suffice (if used in a measure). The output that they produce can be very different. Indeed, you can only have one active relationship between any. We will see in which scenarios, each of them should be used and how to impleme. If you have worked with any databases or BI tools, you must have created relationships between tables to form a snowflake schema or star schema. related vs relatedtable, dateadd & parallelperiod functions in dax. USERELATIONSHIP () is a functionality that is available with CALCULATE () used to activate a relationship during the evaluation of an expression, as we know, a data model may. RELATEDTABLE() RELATED() and RELATEDTABLE() are the two functions used to traverse one-to-many relationship in. You can visit the rest of our blog. The MAX, MAXA, and MAXX functions are some of the most commonly used DAX functions in Power BI. If the tables are related, this is very simple, you can see the below-given suggestion: Number of Table2 rows = COUNTROWS(RELATEDTABLE(Table2)) Then you can add a Calculated Column to Table1 which counts the times each item appears in Table2: Number of Table 2 rows: COUNTROWS(RELATEDTABALE(Table2))by PowerBIDocs. If you create two calculated columns that actually reference each other, then you are generating a circular dependency: 1. This comparison differs from = only when at least. to use this related function in power bi you need to link. DNA . SUMX. The RELATEDTABLE function assigns values from the associated table. The column must be named using standard DAX syntax, usually, fully qualified. Refer this blank query (lets call this query TableBGrouped) to your TableB: = TableB. Saisir du DAX (Excel, Power BI) Fonctions de filtres. The RELATEDTABLE function changes the context in which the data is filtered, and evaluates the expression in the new context that you specify. So, I don't think it is used correctly here. Step-2: Create a calendar table using CALENDARAUTO Dax function. If the REMOVEFILTERS function is supported by your tool, it's better to use it to remove filters. DAX - Filter Table by Multi Select Filter Condition. CÓDIGO UTILIZADO NO VÍDEO*****. Multiple filters in DAX with OR Keyword. Estas funciones te permiten acceder a un valor o al resultado del calculo de varios valores que se encuentran en otra tabla relacionada. -- filtering the currently iterated row. Step-3: As you can see in below screenshot, it return new table with given condition data where sales is > 200. Hi. That makes the RELATEDTABLE function a tabular function. The difference between the two functions is related to the input type and the output type. An account can have several opportunities. UPDATE 2022-02-11 : The article has been updated using DAX. However, in that case the many-to-many. USERELATIONSHIP is generally used to activate the inactive relationship between fields in two tables, acting on the specific measure. ”. 🎩. You can use TREATAS to apply the filter context of the product table to the Sales table by using the. I need to report the transaction amounts by the 'week of' for. Learn how to work with the RELATED and RELATEDTABLE function in DAXLearn SUMX - - - - My Courses - - - - ️ Maste. You can use this approach to create a virtual relationship. Hi, I have the two following tables (household and member) linked by an ID. The historical DAX function that aggregates and group data leveraging existing relationships is SUMMARIZE. Is there any performance advantage to do it in M, not in DAX? M approach. These functions are used to access data from related tables in your data model. Description. Step-3: Now write below Dax. It is used to establish a relationship between tables based on a common column, and then retrieve related data from one table to another. But it returns a syntax. However, there are some built in DAX functions which can take advantage of existing relati. Both RELATED and LOOKUPVALUE are DAX functions that are used in a calculated column when you need to reference a column from another table to return a value that is related and has an exact match to the current row. Many DAX newbies use LASTDATE to search for the last date in a time period. Their behavior is very intuitive: UNION performs the union of two or more tables. C. You can see in above screen shot, it retrieves all records from the left table along with the matching records from the right table. This solution uses two parts. In my next blog, we will learn more about DAX. Hi Guys, I need to create a calculated column with userelatioship. MAXX. . Can be active or inactive. What CALCULATE does is it returns what is deemed a scalar value. In one or several VAR sections, you individually declare the variables needed to compute the expression; in the RETURN part you provide the expression itself. . I have 3 tables, main project, with project number, name, date and so on, Expenses table, with expenses type, value, date, etc and Time table, with tasks description, dates, values, etc. I have this DAX expression and it works fine. Jika hubungan tidak ada, Anda. Reza is author of more than 14 books on Microsoft Business Intelligence, most of these books are published under Power BI category. Step-1: Create a measure to count the total number of rows in the “Orders” table/dataset. Download. I'm trying to sum the index performance (i have a column for the daily performance) since the acquisition of the stock (the date of acquisition is in the list table). 28. However, ALLEXCEPT is commonly used as a. . Prueba como. It is possible for users to accidentally enter Events with dates before or after Equipment Commission and Decommission dates. 27. . If the filter context is empty, a DAX expression can iterate all the rows of the tables in a data model. This DAX function returns a related value from another table when it's used as a lookup function. When you need to fetch things like category names for products, RELATED() is your trusty sidekick. » Read more. . Welcome back to the Power Pivot Principles blog. 21. 10-31-2017 10:30 PM. 📊 DAX Day 3: RELATED vs. 1879 34 135 0. What is the best way to vertically combine two large tables of the same structure. Please give Kudos for support. This article shows how to use the USERELATIONSHIP function in DAX to change the active relationship in a CALCULATE function. Sorted by: 1. If the tables are related, this is very simple, you can see the below-given suggestion: Number of Table2 rows = COUNTROWS(RELATEDTABLE(Table2)) Then you can add a Calculated Column to Table1 which counts the times each item appears in Table2: Number of Table 2 rows: COUNTROWS(RELATEDTABALE(Table2)) by PowerBIDocs. In DAX there are two ways you can obtain a JOIN behavior. . Syntax DAX RELATED(<column>) Parameters Return value A single value that is related to the current row. -- GENERATE is similar to CROSS APPLY in SQL. I have two tables that are linked by a Run_ID. The Power BI TREATAS function applies a result of a table expression as filters to columns from an unrelated table. The calculation can be written in several different ways, each one with. The Evaluation Context consists of a filter context and a row context, which are automatically defined in any query, for example by a pivot table in Excel. In my example below, I need the formula for the. You are ready to read and query the tables using your favorite data tools and APIs. Propagating filters using TREATAS in DAX. Using FILTER() in DAX. CROSSFILTER. RELATED [WIP] RELATEDTABLE. For RELATEDTABLE it can look up values from the Many-Side and bringing them into the One-Side. Or they use NEXTDAY to retrieve the day after a given date. RELATEDTABLE 📈 1️⃣ RELATED Function: RELATED establishes a connection between two tables through a single-column relationship… DAX関数のRELATED()とRELATEDTABLE()関数の違いと使い方を説明しました。参考にした書籍は以下です。. RELATED: Returns a related value from another table. RELATED, RELATEDTABLE – DAX Guide. Please find the code in the below location. The above picture shows physical relationships: Visible links between tables (typically 1:* cardinality). New Table = SUMMARIZECOLUMNS ( 'Calendar' [Year], Sales [DateKey], FILTER ('Product','Product' [BrandName]="Contoso"),"total sales",SUM (Sales [SalesAmount] )) Please review the following blogs about how to use SUMMARIZECOLUMNS function. You specify the column that contains the data that you want, and the function follows an existing many-to-one relationship to fetch the value from the specified column in the related table. DAX RELATEDTABLE function is equivalent to DAX CALCULATETABLE function with no logical expression. The RELATEDTABLE function performs a context transition from row context (s) to a filter context, and evaluates the expression in the resulting filter context. Can be active or inactive. This simple formula includes the definition of two variables: 1. DAX 101: Using RELATED and RELATEDTABLE in DAX. Is there a way to create a DAX new column which returns single values from a related table with multiple values? I have used RelatedTable, selectedvalues, Values functions. The row context tells DAX which row to use when it needs to obtain the value of a column. Try and reserve DAX for calculations and keep the use of it to make calculated columns to a minimum of possible. Using Multiple filters in DAX. Step 2: Now Create Measure to find maximum sale value from sale column. Now, suppose you want to create a report that shows the total sales amount by product category. Read related article. Marco Russo. Using RELATED and RELATEDTABLE in DAX. A Boolean expression that defines a single-column. To learn about more Power BI topics , please subscribe to my cha. The RELATEDTABLE function assigns values from the associated table. From this blog, you got some idea about 3 important filter functions (LOOKUPVALUE, SELECTEDVALUE, RELATED. . Step-2: After that Write below DAX function. Posted on June 8, 2021 Get a field’s value from another table in Power BI using DAX related function Sometimes, in Power BI, you need to access a field’s value from another. The historical DAX function that aggregates and group data leveraging existing relationships is SUMMARIZE. Nevertheless, the whole DAX semantic is based on the theoretical concept of expanded. Most errors involving context transition are due to the developer forgetting to take the context. If the two tables are related, try this: Column = CALCULATE ( DISTINCTCOUNT ( DA_FACT_DMS[Well_Name] ) ) Best regards. If this post helps, then consider Accepting it as the. Step-1: Relationship should be important for this, let’s create a relationship between both tables. Even if the relationship is inactive, it will be used and overrides. Gestion des dates. Hosted Games = CALCULATE (DISTINCTCOUNT (game_instance [id]), FILTER (game_instance, game_instance [owner_id] = [id]))Step-1: Go to the Modeling tab > click on create a new table icon. To learn more about DAX visit : aka. 01-30-2018 04:35 AM. You can use any column of a table in a JOIN condition. If you have worked with any databases or BI tools. To download the data files used in this video . to use this related function in power bi you need to link. Icey . Right click on Product table and click on New column. Native columns are the ones originally present in the table. Power BI: Related vs RelatedTable in Power BI: RELATED and RELATEDTABLE functions in Power BI's DAX are used to work with relationships between tables, but they serve different purposes. In this article we describe why and when to use these two functions. Most errors involving context transition are due to the developer forgetting to take the context. Dec 13, 2021. What’s the difference and when to use them. . However, its depends on the scenario why you want to use Relationship or Merge in Power BI, like using some DAX functions for analysis that may not work when using Merge. Sometimes, in Power BI, you need to access a field’s value from another table that somehow is related to the existing table. RELATED. This is: Item_ID - Year - Month - Sales_Amount There's a relationship between both Item_ID fields. Try modifying your DAX as follows: Working Hours = IF (. If you have worked with any databases or BI tools, you must have created relationships between tables to form a snowflake schema or star schema. While using this DAX function it is important to understand the following items: For this function to work it is important to ensure that there is a relationship created between the current table and the table with the related information you are. まずはざっくり. DAX provides the RELATED () and RELATEDTABLE () which can be executed in MS Power BI, MS Power Pivot, SSAS to retrieve related data from another. What’s the difference and when to use them. In DAX (Data Analysis Expressions) in Power BI, there are two functions that can be used to retrieve related data from another table: the RELATED() function. In this example, using CONCATENATEX helps identify – out of a list of countries where a company does business – the top performing country with its relative sales volume. Anyone? ExampleI want to return a value based on a measure from a related table. Mastering DAX – Dec 5, Cologne; Mastering DAX – Feb 27, Dallas; Mastering DAX – Mar 4, Amsterdam; Mastering DAX – Apr 15, New York City; Mastering DAX – May 22, Copenhagen; Mastering DAX – Jun 25, Chicago; Data Modeling for Power BI – Jul 2, AmsterdamSome more possible interview questions and answers about DAX in Power BI based on my experience and understanding. 1 ACCEPTED SOLUTION. DAX provides the RELATED () and RELATEDTABLE () which can be executed in MS Power BI, MS Power Pivot, SSAS to retrieve related data from another table. Continuing with the “Jan-2021” example, if we filtered the “ Sales ” table. relatedtable関数は、指定されたリレーションシップテーブルにおいて、関連する行を全て返します。. (RELATED ('Products' [ProductCode])) This effectively gives you a powerpivot fact table of: Basket ID StoreID ProductID SalesValue ProductCode. Step-1: Load Orders dataset into Power BI. In this table I would need to add a column min_value containing the minimum value for each ID in another table Table B : I know I could use SUMMARIZE () on my Table B in order to create a calculated table with the minimum value of each ID, save this Table C and then use LOOKUPVALUE () between my Table A and Table C to get the column I. If you would like to learn more about RELATED, do check out my blog post on Power BI DAX’s RELATED vs RELATEDTABLE Function. RELATED. Read related article. So, it looks up the values in the One-Side and it populates the Many-Side. Value = Sales [QTY] * LOOKUPVALUE (Products [PRICE],Products [ITEMS. Pre-requisites: Both functions require a relationship between two tables (. -- It provides most querying features in a single function: -- First set of arguments are the groupby columns. I have 2 tables fEstoque and dCadastroProdutos and the are related many to one. Conclusion. Full. DAX. How to write queries in DAX to interrogate SSAS tabular models. Direction: The cross-filter direction to be used. BigTable_DAX = UNION ( 'Table1', 'Table2' ) I have a feeling that M way loads the tables. If you simply want to find the maximum value of a column in a table on many-side of the relationship (related table) for each row in a table on the one side of the relationship then simple. However, that table should be related to the existing table somehow in the model. RELATEDTABLE 📈 1️⃣ RELATED Function: RELATED establishes a connection between two tables through a single-column relationship…DAX関数のRELATED()とRELATEDTABLE()関数の違いと使い方を説明しました。参考にした書籍は以下です。. The RELATED function requires that a relationship exists between the current table and the table with related information. DAX Puzzle: RELATED in a Query. . In a general, the DAX CONCATENATEX function returns a text string by concatenating the results of an expression evaluated for each row in a table. So far I have made a monthyear column with related refering to my date table. Using TREATAS you can run a query in 50% of the time required by the FILTER approach, whereas INTERSECT has only a marginal improvement (13%). If you want the measure to display the maximum value,. Subscribe. After you drop the Item ID # column on the other Item ID# column, Power BI will create a relationship between the two tables. The RELATED function requires that a relationship exists between the current table and the table with related information. Aug 30, 2022. The relationship should be in a way that it returns one value from that table per value in the main table. Step-2: Now write a DAX function for inner join-. Power BI DAX’s RELATED vs RELATEDTABLE Function. -- even though we strongly discourage using this feature due. Step 1. . LEFT. Here, we can see there has been a difference between the performance of the two measures. SUMX iterates through the Sales Detail rows belonging to the Sales Header and executes for each row the calculation Product Weight * Sales Detail Quantity. ADDCOLUMNS ( SUMMARIZE (MainSI Table, MainSI Table' [Market]), "Max",MAXX (RELATEDTABLE (WODetail),WODetail [Job Finish Date]) ) Share. power bi related & relatedtable function will help you to get different column from another table. ENTERPRISE . In this case you will have to use RELATEDTABLE function and aggregate the values. The Related function can traverse multiple relationships in the model. Now this active relationship needs to be an inactive relationship, and the related function can't find TABLE2 anymore. Like RELATED, RELATEDTABLE requires a relationship between the two tables. On the other hand, the Power BI USERELATIONSHIP specifies a relationship to be used in a specific calculation as. It is used to establish a relationship between tables based on a common column, and then retrieve related data from one table to another. I have 3 tables, main project, with project number, name, date and so on, Expenses table, with expenses type, value, date, etc and Time table, with tasks description, dates, values, etc. In general, using the example described in this article, the DAX LOOKUPVALUE function can be interpreted as follows. The book begins by quickly taking you through the concepts required to. 1. This works fine and the date is displayed from the "deadline" of the task: I do however have a secondary date. 99 AB001. Viewed 256 times. My data has a column 'VACANT' with boolean True or False Values. WEEK1 and WEEK2 are the fiscal weeks of DATE1 and DATE2 respectively. Calculatetable dax result. . 1. SUMX. I am talking about RELATED and LOOKUPVALUE. Function: Match the data in the dimension table to the fact table, that is, find the data at one end along multiple ends, but only if the two tables have established a relationship. Both can be used to assign values from other table - similarly to VLOOKUP in Excel. Create table. The CONCATENATEX () function requires two. Fonctions Power BI RELATED et RELATEDTABLE en DAX en 5 minutes !🔥 Apprends à utiliser ces deux fonctions à travers deux exemples concrets A la manière d'un. PowerThis function below works in that it returns the values that I expect from creating a new column in ‘ResourceTimePhasedDataSet’ called ‘Demand’ that is calculated from a relationship to a 1 to many table named ‘Assignments’ by filtering on [AssignmentStartDate] (from ‘Assignments’) being <= [TimeByD. The ALLNOBLANKROW function only filters the blank row that a parent table, in a relationship, will show when there are one or more rows in the child table that have non-matching values to the parent column. And it works exactly the same! Hence, we can use USERELATIONSHIP instead of CROSSFILTER when there is huge data and complicated relationships. Working Hours = IF ('Main' [Location]= RELATED (Indianlocations [Location]),9,IF ('Main' [Location] = RELATED (Otherlocations [Location]),8,0)) Pragati11. It will create relationships like the one below. RELATED: Returns a related value from another table. A new Power Query computed column requires a full refresh of the table. to use this related function in power bi you need to link. Fonctions d'agrégation. Now, return and choose “ New column ” for “ Product_Table ” and open the RELATED function. Lets understand the difference between RELATEDTABLE and RELATED DAX functions. In today's video, we will go through two functions in DAX, related and relatedtable. This is an in-depth video lecture of the Related distinct count pattern. DAX Optimization Power BI. The blog teaches us the 5 “ALL” related filter functions of DAX with practical examples. One contains customer information and the other contains subscription details. In our example, a calculated column that computes the year of the order would be as simple as this: 1. RELATED vs LOOKUPVALUE – which one to use? (DAX – Power Pivot, Power BI) There are two functions in DAX with similar, and sometimes replaceable, use. Step-1: Go to Modeling Tab > Select “DAX expression to create a new table”. Relationship Functions. table1 (client, dto) >> —–> table2 (dto, area) >> —–> table3 (dto, value) The goal is to get the average from the “value” field of table3 with a calculated fieldFunction. This is exactly where the difference lies between DAX RELATED and RELATEDTABLE Functions. Get Demo Files herethis video we cover how and when to use the RELATED / RELATEDTABLE DAX functions in Power BI. It is different from the DAX CONCATENATE function in many ways including that it is a table function (DAX functions that end with "X" e. Power BI DAX’s RELATED vs RELATEDTABLE Function. RELATED or RELATEDTABLE? 08-10-2020 02:56 AM. This means that there is no active or inactive relationship between, in this case, the Date table and the fact table. -- GENERATEALL returns ALL the rows of the first argument, even. I was trying to follow the Microsoft 'RELATED' examples to no avail. Now, click on “OK. 👇🏽Clic Para Mas 👇?. Link. Transactions [period_year] = MAX ( Transactions [period_year] ) Now i have created a seperate Date table and seems like I cannot have the same expression but using the fields from the new data table:Data Analysis Expressions (DAX) Reference. If it is a "many to one" relationship, then you might have multiple values for the same record. This article describes different techniques to retrieve multiple values from a lookup table in DAX, improving code readability and. The result of a JOIN does not depends on the presence of a relationship in the data model. If you have any questions related to this project, please feel free to post your comments. Learn more about CONCATENATEX in the following articles: Displaying Nth Element in DAX. TREATAS returns a table that can be used to join two completely different tables with the same data structure. 🎩. Now apply the following step: The relationship will look now like this: Add a measure to TableBGrouped: 3 or more Count = CALCULATE (COUNT (TableBGrouped [AccountID]); TableBGrouped [Count] > 2) Add. It. These functions are used to find the highest value in a column or a table. Follow. ##SQLSatMadrid DAX Agregar con RELATEDTABLE() RELATEDTABLE() Sigue la relacin 1:M y devuelve todas las filas que se relacionan con la fila actual. 并且上述表达式也没有任何意义,不知道它到底想要从订. Microsoft. RELATED and its companion function RELATEDTABLE, are two common DAX functions that are required when using a row context with relationships. Here, in this video, I have explained, how can we use RELATED & RELATEDTABLE DAX functions to take advantage of existing relationships in the data. This book covers Tabular modeling, which uses tables and relationships with a fast in-memory engine to provide state of the. RELATED or RELATEDTABLE? 08-10-2020 02:56 AM. DAX expressions operate on columns. In this tutorial, you will learn the major differences between DAX and Excel lookup formulas with simple examples. M - COMBINAR VS DAX - RELATED() ##SQLSatMadrid Escenario. This daily values table includes as well as values from an index that is not a stock. 👇🏽Clic Para Mas 👇?. As far as I understand from Dax Patterns , all I need to do for each column is to use the following code: Main Groups Used = CALCULATE ( DISTINCTCOUNT (Product [ProductMainGroup]), Sales) Sub Groups Used = CALCULATE ( DISTINCTCOUNT (Product [Product Sub Group]), Sales) Where CALCULATE should ensure that current. Share. TREATAS is a huge help in simplifying your data model. 15. These functions are used to access data from related tables in your data model. Related columns are all the columns of related tables, added to the original table through table expansion. 2. Hi Learners,In this video , I have explained the RELATED and RELATEDTABLE function. The RELATED function offers a more efficient and accurate way to calculate values based on related data, compared to using multiple FILTER functions. The Row Context is similar to the notion of a current. RELATEDTABLE 📈 1️⃣ RELATED Function: RELATED establishes a connection between two tables through a single-column relationship…USERELATIONSHIP uses existing relationships in the model, identifying relationships by their ending point columns. If you insist on having your tables as denormalized as possible and need to match information from one table to another, use the LOOKUPVALUE function instead of RELATED or RELATEDTABLE. Since the "search_value" parameter of the function is first evaluated before the "search_columnName" and the "result_columnName" parameters, you can interpret the example like "lookup the "Category" value or column in Dataset 2 from Dataset 3, and where it matches do return. Choose the common column between these two tables as “Product. USERELATIONSHIP: Uses a specific inactive Power BI model relationships by default. Can be accessed using DAX functions like RELATED, RELATEDTABLE, or USERELATIONSHIP. The data result from expressions evaluated for each row in a table. I want a meassure that checks a column in the "many" table to see if a value exists for the row on the "one" side. In this video, we will learn about the DAX related function how to use it and when to use it. the relation is 1:m from table Releases to table Tickets. 02-07-2019 04:06 AM. The RELATED function offers a more efficient and accurate way to calculate values based on related data, compared to using multiple FILTER functions. RELATED vs LOOKUPVALUE – which one to use? (DAX – Power Pivot, Power BI) There are two functions in DAX with similar, and sometimes replaceable, use. . You retrieve related values from tables by using the formula language provided with Power Pivot, Data Analysis Expressions (DAX). . 🚀 Understanding when to use RELATED() or RELATEDTABLE() can be a. When you need to fetch things like category names for products, RELATED() is your trusty sidekick. You will be able to use RELATED function directly only if it is a "one to one relationship". @Azul There should be atleast one common column between two tables. Even though this function is commonly used for dates, it can be applied to a column of any data type. 📊 DAX Day 3: RELATED vs. . DAX. 14. Specifies the cross-filtering direction to be used in a calculation for a relationship that exists between two columns. Because the active relationship is the one between Sales [OrderDate] and Date [Date], the result is the year of the order for each row. However, they differ in their behaviour and usage. Hola @DevadathanK, EN El operador en Power BI devuelve un valor VERDADERO / FALSO. The name of an existing column, using standard DAX syntax and fully qualified, that usually represents the one side or lookup side of the relationship to be used; if the arguments are given in reverse order the function will swap them before using them. more. 1. The Related distinct count pattern is useful whenever you have one or more fact tables related to a dimension, and you need to perform the distinct count of column values in a dimension table only considering items. There are plenty of ways to do this. If you are not sure if Direct Query vs Import is causing an issue, try switching BOTH queries to Import and try it. returned value with related tables 03-16-2017 04:41 PM. Gestion des dates. Also, if you have a complex model, it is recommended to do as many modelling at the Datasource level. CALCULATETABLE ( DISTINCT ( <ColumnName> ) ) A table expression that returns a single column. Such a function requires a table in the first argument, which corresponds to the table that is grouped. = SUMX ( ResellerSales_USD, ResellerSales_USD [SalesAmount_USD] ) / SUMX ( ALL ( DateTime [CalendarYear] ), SUMX (. Like JK, I have two related tables. May 15, 2021 Power BI / Microsoft Power Platform 22 mins read In this post, we’re gonna explain what’re the main differences between RELATED Vs LOOKUPVALUE DAX, and. Remarks. Relationships in the data model add much flexibility, and two DAX functions thrive on this capability. Read more. 12. INTERSECT performs the set intersection between two tables. RELATED function requires the column that. But while RELATED takes values from the "short" table to the "long" one (from the "number one" site of the relation to the "star" one) , RELATEDTABLE goes backwards. Related articles. -- for invalid relationships, if present. We talked about LOOKUPVALUE a while ago; this is a simple function which returns the value in a given result column for the row that meets all the criteria. I still do not understand why we do not need to use RELATE or RELATEDTABLE in here even both the table has active relationship. Like JK, I have two related tables. Calculatetable dax. DAX dynamic filter using two columns from related table. One of the most powerful features in Power Pivot is the ability to create relationships between tables and then use the related tables to lookup or filter related data. This argument cannot be an expression. You can use simple filters or you can use more advanced. You need to use ADDCOLUMNS, RELATEDTABLE and then summarise the result from the detail table according to requirements. Since there are many tables that have relationship to the People table, only ONE relationship is active and the rest are inactive. By default filter contexts should only propagate in the 1-to-many direction. Both the RELATED and LOOKUPVALUE functions in DAX work similarly to a LOOKUP function in Excel. -- DISTINCT retrieves the distinct values of a column. @Anonymous, Just pick columns between mutiple tables may cause some issue or mistabke. As the link says, RELATED is more efficient.