The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
24 | |
10 | |
8 | |
6 | |
5 |
User | Count |
---|---|
31 | |
12 | |
10 | |
10 | |
9 |