Forum Discussion
Filter Table, aggregate rows value based on key word in new table with new row name for the aggregat
See my table attached as image.
I have a table with two columns, Name, Age.
I want to create another table that has a column with name 'ad' and filter out all the names with 'ad' then aggregate (average) all the age value in another column in the new table. For example the names that start with 'ad' are aditya 23 and adorjan 27. I want a table with columns Name and Age to display row 'ad' and the average of the age in age as 25.
In the same table I want to filter the next row to be 'an' . these are Anish 26, ankit 19 as An with age as 22.5.
Lastly, i want to kmow if the technique adopted would work in the case of a direct query.
See table below.
I want my result to display as shown below:
- Anonymous2 years ago
Thank you parry2k for your prompt reply.
Hi grudginluv20 ,
Depending on the information you have provided, you can follow these steps below:
1.Add a new column.
left2 = LEFT('Table'[NAME],2)2.Add a new table.
Relationship:
3.Filter the visual.
Final output:
How to Get Your Question Answered Quickly - Microsoft Fabric Community
If it does not help, please provide more details with your desired out put and pbix file without privacy information.
Best Regards,
Ada Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
3 Replies
- parry2k
Super User
grudginluv20 what is the business logic here? Are you grouping by the first two letters of the name?
- grudginluv20Frequent Visitor
Im doing it as a 'contains' action. from the example, these are the similarities i could find.
- AnonymousNot applicable
Thank you parry2k for your prompt reply.
Hi grudginluv20 ,
Depending on the information you have provided, you can follow these steps below:
1.Add a new column.
left2 = LEFT('Table'[NAME],2)2.Add a new table.
Relationship:
3.Filter the visual.
Final output:
How to Get Your Question Answered Quickly - Microsoft Fabric Community
If it does not help, please provide more details with your desired out put and pbix file without privacy information.
Best Regards,
Ada Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.