cancel
Showing results for 
Search instead for 
Did you mean: 
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.

 

View solution in original post

adnanzakir
Helper III
Helper III

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 IV
Super User IV

@bhmiller89 , check out the function openingbalancemonth

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



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Top Solution Authors
Top Kudoed Authors