Filtering rows if the text (string) match in Dax
In Power BI, you can filter rows in a table or dataset using Data Analysis Expressions (DAX) by creating measures or calculated columns that use the `FILTER` function to specify a condition for filtering rows based on a text (string) match. Here's a basic example of how to filter rows in DAX when the text in a specific column matches a certain string: Assuming you have a table named "YourTable" with a column named "YourColumn" that contains text: ```dax FilteredTable = FILTER ( YourTable, YourTable[YourColumn] = "YourTargetText" ) ``` In this DAX code: - `YourTable` is the name of your table. - `YourColumn` is the name of the column that you want to match against the text. - `"YourTargetText"` is the text you want to match. The `FILTER` function returns a table that includes only the rows where the condition (`YourTable[YourColumn] = "YourTargetText"`) is met. You can create a new measure or calculated column with this DAX