Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
40 | |
26 | |
20 | |
14 | |
8 |
User | Count |
---|---|
76 | |
48 | |
46 | |
20 | |
16 |