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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
vjnvinod
Impactful Individual
Impactful Individual

month rank

hi team

 

i have a table "discover data"  in which i have a coloumn "Month"

 

when i bring this month to a line chart, it doesn't show me the way i want to see

 

basically the ranking should be if the month is Jul, it should rank as 1 ...... until jun should rank as 12

 

how do i do this?

3 REPLIES 3
Anonymous
Not applicable

@vjnvinod Please create a calculated column as per below

Column = 
VAR _month = MONTH(DiscoverData[Date])
RETURN IF(_month>6,_month-6,_month+6)
vjnvinod
Impactful Individual
Impactful Individual

@Anonymous 

 

there is no date vimal, its just month

hence the below meausre is throwing error

Anonymous
Not applicable

@vjnvinod  try a switch statement in calculated column

ExpectedMonthNumber = SWITCH(TRUE()
                                                                  ,'Table'[Month] = "July",1

                                                                  ,'Table'[Month] = "August",2

                                                                  ,'Table'[Month] = "Sepetember",3

                                                                  ,'Table'[Month] = "October",4

                                                                  ,'Table'[Month] = "November",5

                                                                  ,'Table'[Month] = "December",6

                                                                  ,'Table'[Month] = "January",7

                                                                  ,'Table'[Month] = "February",8

                                                                  ,'Table'[Month] = "March",9

                                                                  ,'Table'[Month] = "April",10
                                                                  ,'Table'[Month] = "May",11

                                                                  ,'Table'[Month] = "June",12

                                                                 ,0)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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