cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
HassanAli123
Helper I
Helper I

Dropdown date slicer All fields should be in desending orde

Hi, 

    I have 5 fields in dropdown slicer year quarter month week and date. i want to see all fields in descending order. how is that possible

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@HassanAli123 , Create a descending order for for column/column and mark that sort column

 

Date1 =[date]

date rank = rankx(Date, [Date],,desc,dense )

 

Mark date rank as sort column of date1

 

 

Year1=[Year]

Year rank = rankx(Date, [Year],,desc,dense )

Mark year rank as sort column year 1

 

use year1, date 1 etc in table visual

 

How to Create Sort Column and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-c

 



Power BI Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s || 50+Power Query List Functions : Learn Power Query List
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!
Want To Learn Power BI | Beginners !! Advance Concepts !! Power BI For Tableau User !!

View solution in original post

6 REPLIES 6
rubikajadhav123
New Member

We have an option in the slicer. for ascending or descending, try this. and please let me know if this is helpful or not

rubikajadhav123_2-1644918179199.png

 

amitchandak
Super User
Super User

@HassanAli123 , Create a descending order for for column/column and mark that sort column

 

Date1 =[date]

date rank = rankx(Date, [Date],,desc,dense )

 

Mark date rank as sort column of date1

 

 

Year1=[Year]

Year rank = rankx(Date, [Year],,desc,dense )

Mark year rank as sort column year 1

 

use year1, date 1 etc in table visual

 

How to Create Sort Column and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-c

 



Power BI Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s || 50+Power Query List Functions : Learn Power Query List
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!
Want To Learn Power BI | Beginners !! Advance Concepts !! Power BI For Tableau User !!

Year rank = rankx(Date, [Year],,desc,dense )

 

This dax expression is not reversing the year colum in descending order.

Hi, 

  i have 5 fields in date slicer, year, quarter, month, week, date. i want to see all in descending order like first, year 2014 2013 2012 and then quarter q4 q3 q2 and then month dec nov oct

IMG_20220215_131425.jpg

@HassanAli123 , You can use sort descending option from three dots.

 

Or you have to create a sort column if that does not work

How to Create Sort Column and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-c



Power BI Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s || 50+Power Query List Functions : Learn Power Query List
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!
Want To Learn Power BI | Beginners !! Advance Concepts !! Power BI For Tableau User !!

 @amitchandak i posted this question again. your previous solution which you suggested me in my previous post that helped me. the link is under following. Thanks for your response

https://community.powerbi.com/t5/Desktop/Dropdown-date-slicer-All-fields-should-be-in-desending-orde...

Helpful resources

Announcements
Power BI Show Episode 10 Recap

The Power BI Community Show

Watch the playback when Amit Chandak, a Power BI Super User, demos how to use Field Parameters to make reports more dynamic.

Health and Life Sciences Power BI User Group

Health and Life Sciences Power BI User Group

Power BI specialists at Microsoft have created a community user group where customers in the provider, payor, pharma, health solutions, and life science industries can collaborate.

Ignite 2022

What's Next at Microsoft Ignite 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Top Solution Authors