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
Dawn85
Frequent Visitor

Convert Month counter to month name

I have Power BI connected to a live database. In the data I noticed the individual who set it up did a day counter and a Month Counter. For example today is 4585 and the month is 214 (April).

 

I have no clue how these numbers are calculated, all I know is my invoice data is governed by this month counter instead of a Month Name: 

213 - March

214 - April

215 - May

and so on.

 

Every row of data has this counter. Is there a way I can change these numbers or define them in the Power Query Editor? Maybe define a starting point?

 

I am very new to Power BI and I have never seen this before myself and don't know why the original individual programmed it this way but unfortunately they are no longer with us.

 

Any help would be greatly appreciated!

 

Dawn85_0-1619040132415.png

 

 

 

1 ACCEPTED SOLUTION
Dawn85
Frequent Visitor

I created a new Query that ill be able to make a relationship with. I believe this should work. If anyone has an easier way though I would not object to it. Thank you all again! 😊

 

Dawn85_0-1619103355419.png

 

View solution in original post

5 REPLIES 5
Dawn85
Frequent Visitor

I created a new Query that ill be able to make a relationship with. I believe this should work. If anyone has an easier way though I would not object to it. Thank you all again! 😊

 

Dawn85_0-1619103355419.png

 

themistoklis
Community Champion
Community Champion

@Dawn85 

 

It seems that these are incremental numbers starting from the first month/day in the dataset

 

These can be used in cases where someone would like to compare current vs previous month or to sort the date periods

 

If you want to find out that these are actually sequences try to sort the months or days (ascending order) and check whether the first month has the number 1 

It starts at 201, That is when this system went live (May 2020)

OK, so starting number is 201.

You just need to find out that it is a sequence

Should I create a number sequence/Month reference table in excel and just link that? Would that be the most efficient way?

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.