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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
N_Kotiyal
Frequent Visitor

Please Solve this problem

Screenshot (20).png

 

Hi All,

I want to sort the age group acsending like 1-30 comes first ,31-60 second column rest like wise .
remember this is the direct query.

2 REPLIES 2
v-tangjie-msft
Community Support
Community Support

Hi @N_Kotiyal ,

 

You have to sort this in SSAS model itself as direct query does not have the ability to perform sorting.

Please note that this is for SSAS tabular model (assumes that you already created a model and connected online to PowerBI)

 

You have to do the sorting in SSAS tabular model using visual studio. For this, select the table and column to sort and click the button "Sort By Column".  This will give you the option to "Sort By" a particular column that need to sort.

 

Click OK and process the model and re-deploy it to see the results in Power BI

vtangjiemsft_2-1706170593951.png

Choose Sort By column :

vtangjiemsft_3-1706170626396.png

 

Best Regards,

Neeko Tang

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

ryan_mayu
Super User
Super User

@N_Kotiyal 

not sure if we can use grouping and binning for direct query

Use grouping and binning in Power BI Desktop - Power BI | Microsoft Learn





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

Proud to be a Super User!




Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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