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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.