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 am trying to find the average time spent in status or with a set issue. I have created a hierarchical sort in the Power Query Editor based on the issue category, initiative key, and the update date. Then, I added an index column, which I created a ranked index for each Initiative key, as seen here:
resulting in the table seen here (sensitive data removed):
I would like to create a ranked column for each consecutive issue following the same process here and another for each consecutive R/Y/G status, that resets for each initiative key . Perhaps a "Ranked Issue" and "Ranked Status" column?
Something like this:
(Apologies for my hasty photo editing skills)
Using the rankings, I believe I can ultimately calculate the average maximum ranking of issue or status to show the average amount of weeks they impact projects (initiative keys). Every entry is conducted weekly to append the table, and the rank could artificially serve as a dynamic counter of those consecutive weeks. I would like to show cards similar to these which I previously mocked up:
Thank you.
@DAXtheDestroyer , Create two new columns
Rankx(filter(Table, [Issue Id] = earlier([Issue_id])) , [Index],asc,dense) //you use date inplace of index
and
Rankx(filter(Table, [Issue Id] = earlier([Issue_id]) && [Issue category short] = earlier([Issue category short]) ) , [Index],asc,dense) //you use date inplace of index
This does work with the change in issues. However, I cannot replicate it for the status changes because if on initiative key has multiple issues assigned, they will have repeated rows for each extra issue. This causes the status ranking counter to continue rather than resetting at the change of issue, as seen below for Initiative Key 213.
The R/Y/G column drives the "On Track Status" column, and we see that there are really only 11 consecutive weeks of "Missing" status, rather than 22.
I believe I solved the running counter problem, seen below:
Is there a way to calculate the average maximum rank for the new columns?
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 |
---|---|
72 | |
68 | |
53 | |
39 | |
33 |
User | Count |
---|---|
70 | |
63 | |
57 | |
49 | |
46 |