Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Dear all,
I am struggling with the following:
I have a table with several columns: 'date', 'ticket_id', 'reason_group', 'reason_specific'.
What I want:
So, the first 5 reasons of the table below should be the filter for a visual.
I am getting really lost with the TOPN, CALCULATE, CALCULATETABLE, SUMMARIZE.
Best,
Janine
Solved! Go to Solution.
Hi all,
I have realised an easy way of getting where I want is by doing the following:
Please find below the measure:
Top 5 Reason =
var __rank =
RANKX (
CALCULATETABLE (
SUMMARIZE ( Sheet1, Sheet1[reason_specific_en] ),
ALLSELECTED ( Sheet1)
),
CALCULATE ( DISTINCTCOUNT ( Sheet1[ticket_id] ) ),
,
DESC,
DENSE
)
return
IF(
__rank <= 5 ,
DISTINCTCOUNT ( Sheet1[ticket_id] )
)
________________________
If my answer was helpful, please click Accept it as the solution to help other members find it useful
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@Fowmy - your solution did not help in using it as a filter for a visual unfortunately. I had done similar things before, but that does not get me to what I want to do with it.
Hi all,
I have realised an easy way of getting where I want is by doing the following:
@janinw
Can you share your data as a sample? This will help me to build the right solution as expected. You may create a dummy data set in Excel with the desired output.
You can save your files in OneDrive, Google Drive, or any other cloud sharing platform and share the link here.
____________________________________
How to paste sample data with your question?
How to get your questions answered quickly?
_____________________________________
Did I answer your question? Mark this post as a solution, this will help others!.
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
User | Count |
---|---|
53 | |
28 | |
19 | |
18 | |
14 |
User | Count |
---|---|
92 | |
86 | |
39 | |
23 | |
22 |