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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
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