Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 21 | |
| 12 | |
| 9 | |
| 5 | |
| 5 |