Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Hi everyone, I'd like to receive some assistance please
Background
I have a column of Occupation data that contains various reported responses.
New column created
So far, I have created a new column that counts the number of times each reported response occurs in the 'Occupation' column.
I would like to create a new column (or a new measure) that calculates the rank (based on the count of the number of times that each reported response occurs in the 'Occupation' column) - however it has to exclude the following reported responses:
What I have created so far
I have currently created a new column called Rank_Count_Occupation that calculates the rank, however it does not exclude the 2 responses mentioned above.
Ranking | Occupation | Number of arrivals |
1 | Not Stated | 4891 |
2 | Non Working Child | 4522 |
3 | Not Previously Employed | 4114 |
4 | Occupation Unknown | 3526 |
5 | Home Duties | 1846 |
Ranking | Occupation | Number of arrivals |
Not Stated | 4891 | |
1 | Non Working Child | 4522 |
Not Previously Employed | 4114 | |
2 | Occupation Unknown | 3526 |
3 | Home Duties | 1846 |
Solved! Go to Solution.
Hi,
This measure works
Measure 1 = RANK(DENSE,FILTER(ALL('ALL Arrivals data'[Grouping_Occupation]),'ALL Arrivals data'[Grouping_Occupation]<>"Not stated"&&'ALL Arrivals data'[Grouping_Occupation]<>"Not previously employed"),orderby([Count_Occupation_],DESC))
Hope this helps.
Hi,
Share the download link of the PBI file.
Hi,
This measure works
Measure 1 = RANK(DENSE,FILTER(ALL('ALL Arrivals data'[Grouping_Occupation]),'ALL Arrivals data'[Grouping_Occupation]<>"Not stated"&&'ALL Arrivals data'[Grouping_Occupation]<>"Not previously employed"),orderby([Count_Occupation_],DESC))
Hope this helps.
Thank you so much for your help - your measure did the job nicely 🙂
You are welcome.
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
93 | |
60 | |
44 | |
35 | |
34 |