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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
zenisekd
Super User
Super User

Date hierarchy sorting in composite model doesnt work

Hi, I have a composite model, where I used a dataset from power bi and data from Google analytics. I have a Date Table in the dataset, in which I created also a hierarchy (automatic date hierarchy is disabled btw). I took the Google data, connected it to the date table and started building chart, where I wanted to display revenue (from GA) by Date hierarchy (from PBI Dataset). Unfortunately, the chart won't sort the hierarchy correctly, as you may notice below (just to confirm, I do sort it by the date hierarchy). 

Any idea why is it happening and what to do with it? When I take some measure from the Power BI dataset, the hierarchy sorts correctly, but when I use a column from GA, it doesn't work anymore and starts sorting it as (I guess) a string. 


zenisekd_0-1620725137122.png

 

4 REPLIES 4
ReportMaster
Post Patron
Post Patron

Hi @zenisekd were you able to find a solution? I used the GA native connector but had some issues with my data sometimes. As a workaround, maybe you can try to test your connection with a 3rd party connector. I've tried windsor.ai, supemetrics and funnel.io. I stayed with windsor because it is much cheaper so just to let you know other options. In case you wonder, to make the connection first search for the GA connector in the data sources list:

 

GA-1.png

 

After that, just grant access to your GA account using your credentials, then on preview and destination page you will see a preview of your GA fields:

 

GA-2.png

 

There just select the fields you need. Finally, just select PBI as your data destination and finally just copy and paste the url on PBI --> Get Data --> Web --> Paste the url.

 

SELECT_DESTINATION_NEW.png

v-easonf-msft
Community Support
Community Support

Hi, @zenisekd 

Could you please tell me whether your problem has been solved?

If yes, you could accept the helpful answer as solution. You could also share your own solution here.
For now, there is no content of description in the thread.

Best Regards,
Community Support Team _ Eason

v-easonf-msft
Community Support
Community Support

Hi, @zenisekd 

It seems that you are using  custom Date hierarchy.

It will be easier to sort Date hierarchy  in a table visualization. So please follow thes steps:

  1. convert this line chart to a table visualization
  2. sort date hierarchy in the table visualization (“shift +click” to sort multiple columns)
  3. convert the table visualization to the  line chart again.

 

Best Regards,
Community Support Team _ Eason

 

selimovd
Super User
Super User

Hey @zenisekd ,

 

in the visual go to the 3 dots, chose to sort by date and then ascending:

selimovd_2-1620726847649.png

 

This should fix your sort problem.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors