Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I am using Direct query and have a decomposition tree like below.
1. I want the variable Year to be sorted in ascending order by year and not the number of sales in year. So in the example the results should be shown in the Year column in the order of 2018, 2019, 2020, 2021, 2022, 2023.
2. how to increase the width of nodes so that City_ company_level_1 and City_ company_level_2 headings will be shown in full rather than having ...
Hello @clarkson106
if this is what you want,
you need to do the following :
1. create w calculated column to rank the years .
2. create a second caluclated column to rank the sales ( in each year )
create a third caluclated column to concatenate the 2 previosuly created columns .
in the decomposition tree, add this measure in the tooltip ,
then you order by this column .
If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution ✅
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠
keep in mind, that if you want the ranking to change base on your slicers,
you need to create the sortings as measures not calucalted columns .
If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution ✅
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠
Thanks for the reply. I will test it out and let you know how it goes
Hi @clarkson106
Oh Unfortunately i dont know how to add secondary sorting to decomposition tree.
We can check with other experts in the community if they know anything
Thanks and Regards,
Sayali
Please mark the question solved when done and consider giving a thumbs up if posts are helpful!!
Proud to be a Super User!
Hi @clarkson106 ,
1. For sorting . please click on 3 dots and select sort by option select your desired sorting attribute
2. For showing whole name intstead of ....
Please go in formatting options
select Options
and increse the size.
Thanks and Regards,
Sayali
Please mark the question solved when done and consider giving a thumbs up if posts are helpful!!
Proud to be a Super User!
Thanks @sayaliredij. Sorry I had not made it clear in my post. So what I want is, whenever the variable Year is added into the tree it should be displayed as 2018, 2019, 2020 so on. But the other variables should be displayed sorted by the number of Sales. If I go with your suggestion of sorting by year, then all other variables are also sorted by year. I only want Year to be sorted by year and all other variables to be sorted by the number of sales. Is this possible?
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
68 | |
68 | |
40 | |
29 | |
26 |
User | Count |
---|---|
88 | |
49 | |
45 | |
38 | |
37 |