Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have this table:
Title | Path | Views
ABC Super Super Title | www.example.com/abc.html | 5
ABC Super Super Title | www.example.com/abc.html | 2
ABC Super Title | www.example.com/abc.html | 5
DEF Title | www.example.com/def | 2
I want to extract this:
Path | Top_title
www.example.com/abc.html | ABC Super Super Title // Because it has a total of 7 views
www.example.com/def | DEF Title // It's the only one for this path
I suppose this could be achieved in a calculated table, but I'm not sure of the DAX expression needed.
Here is what I tried:
titleTable = SUMMARIZE(t, t[path], t[title], "title_views", sum(t[views]))
This gave me this table:
Title | Path | title_views
ABC Super Super Title | www.example.com/abc.html | 7
ABC Super Title | www.example.com/abc.html | 5
DEF Title | www.example.com/def | 2
Then I was thinking to create yet another table grouped by path, and selecting the top title based on the title_views. I don't know how to do this..
topTitles = SUMMARIZE(titleTable, titleTable[path], "top_title", <DAX for the value of the title that has the highest value in title_views>)
I'm open to an M query solution..
Here's the file with PQ transformations:
https://1drv.ms/u/s!ApyQEauTSLtO6m46sADmObtnJRe9
Please note that I had to deal with the possibility of duplicate titles for the same path with the same number of views. You have not explained how you are going to deal with this, so in such a case I only leave the title that's first in alphabetical order.
Best
Darek
Nice @Anonymous . So, I see you are creating many one-line m query tables. Cannot they be combined in one/fewer?
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
8 | |
6 |
User | Count |
---|---|
14 | |
13 | |
11 | |
9 | |
9 |