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
bhmiller89
Helper V
Helper V

Make End of Month Value equal beginning of next month's value

I have two measures: starting and ending. I need the Ending value of January to equal the starting value of February, and so on. Is there a way to write this? 

1 ACCEPTED SOLUTION
v-cazheng-msft
Community Support
Community Support

Hi @bhmiller89 

You can try these methods.

 

1 Add one to your [ending] Measure

 

2 Use this Measure

end = DATE(YEAR(SELECTEDVALUE(DateTable[Date])),MONTH(SELECTEDVALUE(DateTable[Date]))+1,1)

 

The result looks like this:

v-cazheng-msft_0-1618817119740.png

 

For more details, you can refer the attached pbix file.

 

Best Regards,

Caiyun Zheng

 

Is that the answer you're looking for? 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

3 REPLIES 3
v-cazheng-msft
Community Support
Community Support

Hi @bhmiller89 

You can try these methods.

 

1 Add one to your [ending] Measure

 

2 Use this Measure

end = DATE(YEAR(SELECTEDVALUE(DateTable[Date])),MONTH(SELECTEDVALUE(DateTable[Date]))+1,1)

 

The result looks like this:

v-cazheng-msft_0-1618817119740.png

 

For more details, you can refer the attached pbix file.

 

Best Regards,

Caiyun Zheng

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Anonymous
Not applicable

Hi @bhmiller89 

Using the calendar table, can the starting day of the month be -1 from the previous day i.,e.(first day -1). 

Basically something like this (01/02/2021 - 1 = 31/01/2021). And use that value for the measure

amitchandak
Super User
Super User

@bhmiller89 , check out the function openingbalancemonth

refer this video: https://www.youtube.com/watch?v=6lzYOXI5wfo

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.