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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

Gantt Chart By MAQ Software Sort rows

Hi all,

using “Gantt Chart” By MAQ Software component in a report I have the need to order lines presented based on the "start date" of the activity which form me is the second column.

It seems it should be possible since small arrow are present in each column header.

By default the order applied is the alfabetic one on the first column (task name in this case) and clicking on the arrow it change the order (ascending / descending).

 

enrico-ferrari_0-1614866771642.png

It seems it is also possible to order by other column: arrows are present also there.

Problem is that order is "additional", menaning that rows are ordered by first column, THEN by second column. It seems it is not possible to order only by second column.

In adiditon I noticed that before ordering with second column the first one must be ordered ascending. If it is descending, at first click (on the second column arrow) the order of the first column is changed to ascending and at the scond click (always on the second column arrow) the order in the second column is also changed.

Could you help me in finding a way to order ONLY by a single column on not with the combination af all (starting from the left)?

Thanks

Enrico

1 ACCEPTED SOLUTION
v-kelly-msft
Community Support
Community Support

Hi @Anonymous ,

 

If you use the ordering function in  MAQ Software,it will be applied in all the columns,the only solution is to create a measure to get the ordering number.You could use rankx or TopN function.

Check the references below:

https://docs.microsoft.com/en-us/dax/rankx-function-dax

https://docs.microsoft.com/en-us/dax/topn-function-dax

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

View solution in original post

4 REPLIES 4
Dounia
Frequent Visitor

Hello all, 

To sort by end date I have created an index by end date, and it works. But I need that index to be a sub-order within my first category (called goals) which I have simply enumerated 1 to 6. However the index is being applied to all columns. 

Can anyone help me? Thanks in advance 

Its Goals first (category A) and then the end date (index) for each of the actions in that goal. 

Thanks alot!!

Dounia

MAQSupport
Solution Supplier
Solution Supplier

Hello,

 

We’ve notified our engineering team of “Sort by column” request. We value end-user experience and regularly add features based on feedback. Please follow our beta build page for new feature announcements.

 

If you have an urgent need for a custom feature, please contact sales@MAQSoftware.com

 

Anonymous
Not applicable

For our table, an easier solution was to sort and then add an index.

1. Get the table to a state you need it

2. Sort by Start Date

3. Add Index column (native Power BI)

 

Then in the Visual, I just added Index as the first Category, renamed it as ID, and done. Then I was able to have the milestone title as the second value in the Category and it looked just perfect. No special expressions needed during the Transform Data.

v-kelly-msft
Community Support
Community Support

Hi @Anonymous ,

 

If you use the ordering function in  MAQ Software,it will be applied in all the columns,the only solution is to create a measure to get the ordering number.You could use rankx or TopN function.

Check the references below:

https://docs.microsoft.com/en-us/dax/rankx-function-dax

https://docs.microsoft.com/en-us/dax/topn-function-dax

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors