Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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:
Solved! Go to Solution.
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.
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.
@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.
User | Count |
---|---|
122 | |
69 | |
67 | |
58 | |
52 |
User | Count |
---|---|
187 | |
94 | |
67 | |
63 | |
54 |