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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
sittitek
New Member

Ascending data within graph

Dear all,

I would like to ascend the data value, number, within each bar graph. 

in the picture, it sorts by the alphabet 

sittitek_0-1596166804115.png

 

thank you very much

 

4 REPLIES 4
v-yingjl
Community Support
Community Support

Hi @sittitek ,

If you want to sort it by number in the bar chart, you can create a calculated column like this and put it in the legend field:

Column =
VAR _date = [Date]
RETURN
    RANKX ( FILTER ( 'Table', 'Table'[Date] = _date ), 'Table'[value],, ASC, DENSE )

rankx.png

 

Best Regards,
Yingjie Li

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

lbendlin
Super User
Super User

Note that there is an "i" warning. You are trying to show too much data. Might want to limit it to the top x per date.

 

Anyway, I don't think the standard stacked bar has the option to sort each individual bar differently.  There might be custom visuals out there that do that.

Thanks, Ibendlin

this is published data from a general website. 

 

I will search for custom visuals as you recommend. thank you.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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