Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Dear all,
it seems this kind of question comes up often, but I can not seem to find a solution.
Here is my situation.
I have a list of prcesses that happen at a specific date. Each process has a number of events (some just a few, some hundreds) which may or may not fail.
Table1
Process | event_id | failed? |
A | 1 | 0 |
A | 2 | 0 |
A | 3 | 1 |
B | 4 | 1 |
B | 5 | 1 |
C | 6 | 0 |
C | 7 | 0 |
D | 8 | 0 |
D | 9 | 1 |
D | 10 | 1 |
D | 11 | 0 |
I also have a date table that tells me in which year the processes have run
A | 2020 |
B | 2020 |
C | 2019 |
D | 2019 |
I have created a measure that claculates for each process the percentage of failed events
Process | %failed | Year |
A | 33% | 2020 |
B | 100% | 2020 |
C | 0% | 2019 |
D | 50% | 2019 |
However: what I would like to achieve is a measure that now gives me the average %failed over all processes each year
Solved! Go to Solution.
Hi, @Johannes_W
Please check the below picture and the sample pbix file's link down below.
When you put the Process column into the visualization, the correct result is still shown.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
Hi, @Johannes_W
Please check the below picture and the sample pbix file's link down below.
When you put the Process column into the visualization, the correct result is still shown.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
Dear Jihwan,
that works perfectly, thank you so much! I need to ponder on why it works though.
Thanks!
Joh
User | Count |
---|---|
25 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
25 | |
12 | |
11 | |
10 | |
6 |