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,
I am a new user to Power BI Desktop and wondered how I rank a 'Total' value that I have in table1, which is ranked by a 'Job Title' column which is in table2? There is a relationship between the 2 tables which is based on an employee number column.
Would I build he measure/column in table 1 or am I better off creating this in a new clean table3?
Thanks
Sonny
Solved! Go to Solution.
Hi @sonny,
According to your description, I create some sample data and create a calculated column in Table 1 use Rankx() function to rank the Total values based on Job Title. See:
Rank = RANKX(Table1,RIGHT( RELATED(Table2[Job Title]),1))
If above DAX doesn't meet your requirement, please share same sample data and expected results for our analysis.
Best Regards,
Qiuyun Yu
Hi @sonny,
According to your description, I create some sample data and create a calculated column in Table 1 use Rankx() function to rank the Total values based on Job Title. See:
Rank = RANKX(Table1,RIGHT( RELATED(Table2[Job Title]),1))
If above DAX doesn't meet your requirement, please share same sample data and expected results for our analysis.
Best Regards,
Qiuyun Yu
Thats great, thanks Qiuyan.
User | Count |
---|---|
77 | |
76 | |
45 | |
31 | |
27 |
User | Count |
---|---|
98 | |
89 | |
52 | |
48 | |
46 |