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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Arif270182
Helper II
Helper II

formula for converting year & month from text to make comparison

Hi 

 

thanks for below update it worked but now i have another challange  in arranging month from Jan to Dec, I have already arranged table month column  SnipImage.JPGmonth sequence not arranged

how can i fix this sequence 

2 ACCEPTED SOLUTIONS

Hi @Arif270182,

 

You can try to change the data type of the Month column to "Whole Number". It must be Text for now.

 

Best Regards,

Dale

 

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

View solution in original post

Hi @Arif270182,

 

Please change the "Sort by" option in the three dots options after modifying the settings. Please refer to the snapshot below.

formula_for_converting_year_month_from_text_to_make_comparison2

 

 

Best Regards,
Dale

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

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

In the right top corner of the visual, you will see ... symbol, click there and select sort by month . Alternatively, you can click on the Month name in the Fields tab, go to modeling -> sort by-> Select Month number.

 

Thanks

Raj

Nope thats too also really not working 

Hi @Arif270182,

 

You can try to change the data type of the Month column to "Whole Number". It must be Text for now.

 

Best Regards,

Dale

 

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

Hi Dale 

 

Thank you so much now its working but now notice that month is showing in number and when i convert into column chart its showing in gap of two as shown in below 

 SnipImage-3.JPG

Hi @Arif270182,

 

Change the option as it is shown in the snapshot below.

formula_for_converting_year_month_from_text_to_make_comparison

 

Best Regards,
Dale

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

Hi Dale 

 

Thank you for your response i followed your instruction and i got this 

SnipImage-9.JPG

then i had it again continueous one its hows below the only problem in continueous one is that is coming in interval of 2 also month is coming in lie 2 4 6 8

 SnipImage-8.JPG

Possible to find a way to fix it ?

Hi @Arif270182,

 

Please change the "Sort by" option in the three dots options after modifying the settings. Please refer to the snapshot below.

formula_for_converting_year_month_from_text_to_make_comparison2

 

 

Best Regards,
Dale

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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