The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Good afternoon Community, I hope you are well.
I have a report that needs a query whether or not a field contains a piece of text, example:
I have this table with the values I want to look up:
On the other hand I have a table of several with fields where I want to look up the values of the table above:
Once I look up the text of the first table in the second table the number of the second field of the first table should be added, what I did to achieve this was the following:
I made a Crossjoin of both tables so that n catidad of records were created for each key, so I could consult how many words each comment has since they can have more than one and once that is consulted, I assign the score in a new column of the crossjoin with the following formula:
example:
This in order that I can compare the texts since I did not find another way to generate it (If you have any idea is welcome), once having this I am generating the necessary fields to create a pareto diagram that would be the frequency and the percentage, but at the time of doing the calculation for obvious reasons it brings me the values of all the cells since I calculate it in this way :
@Syndicate_Admin , based on what I got so far.
Create a new column in table 2
maxx(filter(Tabla1, search(Tabla1[clave], Tabla2[Commentarios],0,1)>0 ),Tabla1[score])
or like
sumx(filter(Tabla1, search(Tabla1[clave], Tabla2[Commentarios],0,1)>0 ),Tabla1[score])
Good morning , I hope you are well.
Try to do it as in your comments, but it throws me an error :
An argument of function 'SEARCH' has the wrong data type or has an invalid value.
Greetings and thanks in advance.
User | Count |
---|---|
83 | |
83 | |
37 | |
34 | |
32 |
User | Count |
---|---|
92 | |
79 | |
62 | |
53 | |
51 |