Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
HI I have this data set
Asset Class | Asset Model | Failure Code | Notification Number | Condition Rating | Total Risk | Work Centre |
a | a | 1 | 1 | 10 | $10 | aa |
a | a | 2 | 2 | 9 | $11 | bb |
a | a | 2 | 3 | 8 | $12 | cc |
b | b | 3 | 4 | 10 | $13 | aa |
b | b | 3 | 5 | 10 | $14 | aa |
b | b | 3 | 6 | 10 | $15 | aa |
c | c | 4 | 7 | 5 | $16 | aa |
c | c | 4 | 8 | 5 | $17 | aa |
c | c | 4 | 9 | 5 | $18 | bb |
d | d | 5 | 10 | 6 | $19 | aa |
d | d | 5 | 11 | 6 | $20 | bb |
d | d | 5 | 12 | 6 | $21 | aa |
I want to create this table
Asset Class | Asset Model | Failure Code | Count of Notifications | Condition Rating | Median Risk | Median Risk Rank |
a | a | 1 | 1 | 10 | calculate this | calculate this |
a | a | 2 | 1 | 9 | calculate this | calculate this |
a | a | 2 | 1 | 8 | calculate this | calculate this |
b | b | 3 | 3 | 10 | calculate this | calculate this |
c | c | 4 | 3 | 5 | calculate this | calculate this |
d | d | 5 | 3 | 6 | calculate this | calculate this |
The thing is, I want to be able to have a slicer on the page and if I change the work centre it recalculates the median for the ones in that work centre and the rank as well.
Then, what I want to do is plot a scatter plot and have the rank on the x axis of a scatter plot and the total risk on the y axis for each notification and this changes when you filter on work centre.
Solved! Go to Solution.
@fingalbrad , refer if the attached file can help
@fingalbrad , refer if the attached file can help
Hi I see your formula was calculating the median risk for Asset Class. I wanted to do it for a combination of Asset Model ID & Failure Code & Condition Rating so I made a combination of those as another column then passed that through and it seemed to work. Now when I do it in my report, the median seems to be working but the rank doesnt.
I then created some measures
and then I created the rank
but for some reason the AM/FM Risk one works and I can put it in a table
But when I try and add Rank AM/FM Risk it goes blank. Can you see what I have done wrong??
@fingalbrad ,
Can you share sample pbix after removing sensitive data.
@fingalbrad , I tried on old data, but it is working
you are an absolute legend. That works perfectly. Thank you so much for that
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
96 | |
69 | |
45 | |
40 | |
30 |
User | Count |
---|---|
154 | |
94 | |
62 | |
42 | |
41 |