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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
tomprice
New Member

Sort By Column Issue

Hi,

 

Goal: I'm tryign to sort the column 'generation' by the column 'TotalSalesImpact' and I'm seeing the below error message suggesting that there's some sort of duplicate values. However, as you can see from the 'TotalSalesImpact' column there are no duplicate values.

 

I've been getting this error quite a lot in this dashboard and I'm really confused as to why I'm seeing this. Any help would be massively appreciated.

 

tomprice_0-1718177976227.png

 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @tomprice 
This is because of the blank value. 
Update your formula for the template : (with your parameters)

table  test = SUMMARIZE(orders,'Customers'[Country],"Total",[total_sales]+0)
it should work :
Ritaf1983_0-1718178950515.png

The pbix with the example is attached 

 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
tomprice
New Member

Thanks a lot @Ritaf1983 that did the trick!

Happy to help ☺️

Ritaf1983
Super User
Super User

Hi @tomprice 
This is because of the blank value. 
Update your formula for the template : (with your parameters)

table  test = SUMMARIZE(orders,'Customers'[Country],"Total",[total_sales]+0)
it should work :
Ritaf1983_0-1718178950515.png

The pbix with the example is attached 

 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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