cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
jcastr02 Post Partisan
Post Partisan

Sorting from most recent to least recent

I am trying to show the most recent comments on the top of the visual.  When I sort by column - I get error message below.  Please see the 30 day tab on BI file.  I have tried also adding index column and that doesn't work.  It seems it is related to repeating values such as N/A.   I am trying to correct visual that shows "additional support needed" on the 30 day page. 

 

 

 https://1drv.ms/u/s!Ava_12t7CNJtkEcQHD-Ralk-Qgjf?e=tXy0lr 

2 REPLIES 2
Community Support
Community Support

Re: Sorting from most recent to least recent

Hi @jcastr02 ,

 

Please insert an index column in the table '30 Day - Addtional Support Needed' in power query and make the column 'What can we do to provide additional support to improve your experience?' sorted by it.

 

We can also create a calculated column and add it together with column 'What can we do to provide additional support to improve your experience?' to visual to work around.

index = CALCULATE(COUNTROWS('30 Day - Addtional Support Needed'),FILTER('30 Day - Addtional Support Needed','30 Day - Addtional Support Needed'[Start Time]<= EARLIER('30 Day - Addtional Support Needed'[Start Time])))

 

22.PNG

 

Alternatively, We can use a measure to work it out.

Measure 2 = var maxstarttime = CALCULATE(MAX('30 Day - Addtional Support Needed'[Start Time]),ALLSELECTED('30 Day - Addtional Support Needed'))
return
CALCULATE(MAX('30 Day - Addtional Support Needed'[What can we do to provide additional support to improve your experience?]),FILTER('30 Day - Addtional Support Needed','30 Day - Addtional Support Needed'[Start Time]=maxstarttime))

 

For more details, please check the pbix as attached.

 

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
jcastr02 Post Partisan
Post Partisan

Re: Sorting from most recent to least recent

Hello @v-frfei-msft   when I try to add the measure , visual look like this..

 

Untitled.png

 

I can't use the column measure as I don't want to show the index column on the visual.  when i try to shrink it , the word wrap still makes all boxes too big....

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors