Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
Marcky
Frequent Visitor

Sort column based on the value of other column that possible can be the same value

Hi There,

 

How can I sort Senior VP column based on the value of Number of Incident? The issue here is the Number of Incident can be the same which we cannot use as a reference for sorting a column if there are duplicate in there?

is there anyway to do it?

 

Marcky_1-1665732442969.png

 

Thanks

 

5 REPLIES 5
v-yalanwu-msft
Community Support
Community Support

Hi, @Marcky ;

So what does your raw data (even a small example) look like? What do you want the output to be?

please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Dinesh_Suranga
Continued Contributor
Continued Contributor

@Marcky 

Create a new table using current table Senior VP column without duplicates.

Then create new column in new created table with count of Senior VP in current table. Using that column you can sort it.

if you need help to do that please let me know.

Thank you.

Hi @Dinesh_Suranga 

 

Yes, but i want to sort it based on the number of incident

@Marcky 

Yes. The second column you create in new table gives you the count of incidents.

@Dinesh_Suranga 

 

how can i avoid having duplicate number of incident because sometimes there is no incident for 2-3 for the Senior VP meaning it will tag as 0

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.