Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
I´m trying to sort "Level 1" value based on the value in "Primary Key" but I´ve also tried "Primary Key 2" without and success.
Only get this error message: There can´t be more than one value in "Level 1 Order" for the same value in "Level 1".
Regards:
Niclas
Hi @Anonymous
Thanks for reaching out to us.
>>I´m trying to sort "Level 1" value based on the value in "Primary Key" but I´ve also tried "Primary Key 2" without and success.
where are you trying to sort column? in Excel or in Power BI Desktop?
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , I think Primary Key 2 should work. In not Create a new column like this and try to sort on that
if(isblank([Lavel1], blank(), [Primary Key 2])
Use this new column
User | Count |
---|---|
14 | |
9 | |
7 | |
7 | |
6 |
User | Count |
---|---|
21 | |
11 | |
10 | |
9 | |
8 |