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

View all the Fabric Data Days sessions on demand. View schedule

Reply
erin_a
New Member

Changing the name of a date bin

Hi there,

 

I have binned my data so that I can report totals for 6-month periods. My question is whether it's possible to change the name of the bin values, for example from 'January 2018' (see table below) to 'January - June 2018', so that axis labels on visualisations are labelled with the full six month period rather than just the first month in the period?

 

erin_a_1-1627966418821.png

 

Thanks in advance,

Erin

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@erin_a 

you can create a column

Column = 
VAR _min=minx(FILTER('Table','Table'[Date (bins)]=EARLIER('Table'[Date (bins)])),'Table'[Date])
VAR _max=maxx(FILTER('Table','Table'[Date (bins)]=EARLIER('Table'[Date (bins)])),'Table'[Date])
return FORMAT(_min,"mmmm")&"-"&FORMAT(_max,"mmmm")&" "&year(_min)

you can don't use the bin and create the column directly

Column 2 = if(month('Table'[Date])<7,"Janauary-June"&year('Table'[Date]),"July-December"&year('Table'[Date]))

1.PNG





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

Proud to be a Super User!




View solution in original post

3 REPLIES 3
erin_a
New Member

Thanks @ryan_mayu! Once I created a custom sort order for the new column values this solved my problem with labelling. Appreciate your help. 😊

you are welcome





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

Proud to be a Super User!




ryan_mayu
Super User
Super User

@erin_a 

you can create a column

Column = 
VAR _min=minx(FILTER('Table','Table'[Date (bins)]=EARLIER('Table'[Date (bins)])),'Table'[Date])
VAR _max=maxx(FILTER('Table','Table'[Date (bins)]=EARLIER('Table'[Date (bins)])),'Table'[Date])
return FORMAT(_min,"mmmm")&"-"&FORMAT(_max,"mmmm")&" "&year(_min)

you can don't use the bin and create the column directly

Column 2 = if(month('Table'[Date])<7,"Janauary-June"&year('Table'[Date]),"July-December"&year('Table'[Date]))

1.PNG





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

Proud to be a Super User!




Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors