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

Adjust/customize the billing date

Hi Power BI Community,

I have this data which involves date. The thing is, our reporting month should be within our billing date.
Our billing date is from 26th of the previous month upto 25th of the current month.

 

BeforeAfter
12/26/201901/01/2020
12/27/202001/02/2020
.
.
.
.
.
.
01/26/202002/01/2020
01/27/202002/02/2020
.
.
.
.
.
.
12/25/202012/31/2020

Take the table above for example. I want it that way.
I found some solution but not exactly what i want.
can anyone help me out?

Thanks

2 REPLIES 2
BA_Pete
Super User
Super User

Hi @ecmurillo ,

 

I'm not sure I've understood your requirement fully, but if you want to add a reporting date that is the first of the following month if the 'Before' date is before the 26th, but the first of the month-after-next if it is on or after the 26th, then add this as a new column in Power Query:

 

if Date.Day([Before]) >= 26
then Date.StartOfMonth(Date.AddMonths([Before], 2))
else Date.StartOfMonth(Date.AddMonths([Before], 1))

 

 

This is the output I get:

BA_Pete_0-1604075013112.png

 

It doesn't follow the 'After' column example, but that column didn't seem to follow any particular pattern that I could see in relaion to the 'Before' state.

 

Pete 



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




AnkitKukreja
Super User
Super User

Hi @ecmurillo 

 

Please refer to acticle shared by @Greg_Deckler . He has explained how to get your queries resolved in a timely manner.

 

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

 

Thanks,

Ankit

If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.
Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904

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.

Top Solution Authors
Top Kudoed Authors