Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
grudginluv20
Frequent Visitor

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.

KJAMFFFJF.png

 

I want my result to display as shown below:

result.png

1 ACCEPTED SOLUTION
Anonymous
Not 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.

vyifanwmsft_0-1713856603259.png

Relationship:

vyifanwmsft_1-1713856667487.png

3.Filter the visual.

vyifanwmsft_2-1713856796861.png

Final output:

vyifanwmsft_3-1713856838293.png

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.

 

View solution in original post

3 REPLIES 3
Anonymous
Not 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.

vyifanwmsft_0-1713856603259.png

Relationship:

vyifanwmsft_1-1713856667487.png

3.Filter the visual.

vyifanwmsft_2-1713856796861.png

Final output:

vyifanwmsft_3-1713856838293.png

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.

 

parry2k
Super User
Super User

@grudginluv20 what is the business logic here? Are you grouping by the first two letters of the name?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Im doing it as a 'contains' action. from the example, these are the similarities i could find.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors