Re: Adding a column that contains count of rows in https://www.youtube.com/watch?v=Wu1mWxR23jU, https://www.youtube.com/watch?v=czNHt7UXIe8, Microsoft Power BI Learning Resources, 2023, Learn Power BI - Full Course with Dec-2022, with Window, Index, Offset, 100+ Topics, Formatted Profit and Loss Statement with empty lines, How to Get Your Question Answered Quickly. Check all your drivers now in 3 easy steps: Add a calculated column on Table [A] using the syntax: The simplest way to add a column from another table is to write the necessary formulas. The below screenshot represents the cardinality relationship between the two tables. Create new column from existing column Power BI with " Add column A table scanning function, such as SUMX, gets the value of the current row value and then scans another table for instances of that value. The resulting table should look like: I want to do this in Power Query instead of creating a measure. Get BI news and original content in your inbox every 2 weeks! The Related function in DAX can be used to fetch a value from a field of another table. This is how the function works; RELATEDTABLE (<tableName>) The input table can be a table in your dataset, let's say FactInternetSales. He has a BSc in Computer engineering; he has more than 20 years experience in data analysis, BI, databases, programming, and development mostly on Microsoft technologies. I now want to add two columns - ClientName and FacilityName - from a table called 'FactFacilityNames'. Marco and Alberto have worked with Analysis Services, Power BI and Power Pivot since the first versions, becoming established experts. The format of the excel is different to the table columns as shown below. CALCULATETABLE ( [,