text
13 TopicsFiltering text with > or <
I have software version information like version 11.0.2 and 11.0.10. If I want to filter to all versions 11.1.0 or later I don't see a good way to filter. Yes, I have broken it into three pieces major, minor, and patch, but for these two version examples when sorting as text 11.0.10 is actually earlier than 11.0.2 (as a string "10" < "2") My solution was to left pad each piece to 3 characters so that the version looks like 011.000.010 and 011.000.002 which works great for sorting, but not for filtering because I don't see a > or < operator, only for numeric values, only things like "contains" and "blank", etc. So what's my best option? Thanks!Solved987Views0likes5CommentsFind multiple substring DAX CONTAINSSTRING
Hello everyone, I need to find if the substrings "house", "home", "dewelling" appear in a long string column. Using CONTAINSSTRING I am able to find each word at a time- house= CONTAINSSTRING(table1[column1], "house"). Is there a way to look for more than one substring? Perhaps something like house= CONTAINSSTRING(table1[column1], "house" or "home" or "dewelling"). Thank you for any help!Solved60KViews0likes14CommentsFiltering by text within text column
Hello amazing community! Does anyone know if it is possible to create a mesure which will filter the column 'purpose' and return only those rows which contain exact wording, for example, 'design' as on the below screenshot? Many thanks for any formula suggestions! AnnaSolved541Views0likes2CommentsIF between DATEs return a TEXT values, how?
Hello community I am having the below issue: DAX comparison operations do not support comparing values of type Date with values of type Text. Consider using the VALUE or FORMAT function to convert one of the values. I want to create a new column that checks if something (Clearing Date) happened between a period of 2 dates (Start reporting & End Reporting), in case of True return a text column with the responsible HUB and if false just type "Non Scope" HUB_Scope = IF ( T_[Clearing Date] >= RELATED ( T_Mapping[Start Reporting] ) & T_[Clearing Date] <= RELATED ( T__Mapping[End Reporting] ), RELATED ( T_Mapping[HUB_SCOPE] ), "NON SCOPE" ) Clearing Date. Start Reporting and End Reporting are Dates but HUB_Scope isnt. How can I can I make work the above formula ?? ThanksSolved1.4KViews0likes2CommentsCheck if rows contain a string value against an unrelated table
Hi, I have two tables in my dataset: Table1 is my transactions which have a description that looks like this: and Table2 is my legend table, where I define what each transaction belong to what category: My goal is to categorize each transaction based on the legend by looking for a piece of description column in the transaction column. So if a transaction contains "Desk", the column I'm going to create shows "Office Supplies". Here is what I've tried: I used a new custom column in Table 1 to check for 3 values and return true if they returned a value: List.Transform ( {"Desk", "Payroll", "Chair"}, (substring) => Text.Contains([Description], substring)) This returns a list of TRUE or FALSE based on the three examples I gave it. Potentially this can be used to get the first row that returns true and use that as a reference for the second column? I tried to do it in Excel, and essentially I had to use SEARCH fonction with INDEX and MATCH to get the category from a different table. My issue is that I have two tables that are not related and I'm not sure how to do a search for a piece of string for every row. I'm pretty new to PowerBI and I need some support please. TIA!Solved2.6KViews0likes4CommentsHelp with DAX measures with text not number
Hello, I am a network engineer trying to get my head around using Measures with DAX. Simply put, I have a list of IP Addresses I am trying to find the Owners and Hostnames for. It has some duplicates in it. I have been given a list of IP/Hostname/Owners in an Excel spreadsheet. My list: IP List Comment 10.1.1.1 Patched 10.1.1.2 New 10.1.1.3 Commissioned 10.1.1.3 Patched 10.1.1.5 New Given List: IP List HostName Owner 10.1.1.1 Mail Tom 10.1.1.3 DC **bleep** 10.1.1.4 Test Harry I would like to create a matrix/table that automatically checks if the IP addresses I have are in the provided table, and if so, 1: Tell me who the Owner is 2: Tell me what the Hostname is. 3: How many times the IP address is listed in my original table. I have tried to do this with measures, but I am having trouble finding good examples of how to do measures with Text values. There are lots of examples with dates and numbers. Would anybody be able to give me a hint?Solved1KViews0likes3CommentsDAX Measure to return the name of the largest category
Hi All() Considering I have the following column chart: Where the category in the axis is Age Range, and the values on each column are actually a measure the counts the number of a certain group of people falling in those categories (it is actually a very simple measure). I want a card that returns the category with the largest amount of people on it. Considering the chart above, the card would return "De 20 a 30". As simple as that. Any thoughts?Solved3.3KViews0likes2CommentsSubstiute multiple values in a text from another table
Hi, I have this string in a column: A*B*C*A*C Then I have this table: Code Description A Blue B Green C Red D Yellow I would like to create a column where the result picks the description from the table. The result should be like this: Blue*Green*Red*Blue*Red I would really appreciate if you could help me with a dax for this. Thanks!Solved2KViews0likes4Comments