Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
User | Count |
---|---|
76 | |
75 | |
46 | |
31 | |
28 |
User | Count |
---|---|
99 | |
91 | |
51 | |
49 | |
46 |