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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Descending order column and recent to 13 weeks back

 

alifazal_0-1630340335095.png

I wanted to know how to make my columns in descending order so it show weeks running back up to 13 weeks

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Create columns like

 

BIWEEK 1  = [BIWEEK]

 

BIWeek Sort = rankx(Table, [BIWEEK],,desc,dense)

 

Then sort BIWEEK 1 on BIWeek Sort and use BIWEEK 1 in visual

 

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Create columns like

 

BIWEEK 1  = [BIWEEK]

 

BIWeek Sort = rankx(Table, [BIWEEK],,desc,dense)

 

Then sort BIWEEK 1 on BIWeek Sort and use BIWEEK 1 in visual

 

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

That worked like a carm  thanks.. Do you know how I can have it so it goes back 13weeks from today ?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.