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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
rcister
Frequent Visitor

undefined

rcister_0-1615079921196.png

Hello everyone! I have a question about a mesuare. Im trying to make a recount according the month.

As you can see, the present month is ok, but when I try to see the following month, the result is wrong( eg in the column that it said "MARZO " in Recount next month it should appear number 16, that correspond to April.

Best Regards!

1 ACCEPTED SOLUTION

I could fix it!

Thank you very much in any way

Best Regards!

 

View solution in original post

6 REPLIES 6
Ashish_Mathur
Super User
Super User

Hi,

Share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

<iframe width="600" height="373.5" src="https://app.powerbi.com/view?r=eyJrIjoiYTQ3Y2FmMjYtNjU3OC00MjY4LTg4NjMtMDY0MzE3ZGVkZGJmIiwidCI6ImE0N..." frameborder="0" allowFullScreen="true"></iframe>

Hi,

That is not a file download link.  Also, would it be possible to share the file in English language?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

I could fix it!

Thank you very much in any way

Best Regards!

 

AllisonKennedy
Community Champion
Community Champion

@rcister 

 

Make sure you have your Calendar table 'Mark as Date table' see the bottom of this blog for how to: 

https://excelwithallison.blogspot.com/2020/04/dimdate-what-why-and-how.html

 

Also, then you can update the Recount Next Month measure to:

 

Recount Next Month = CALCULATE( [Recount Present Month], DATEADD(Calendar[Date], 1, MONTH))

 

That pattern of CALCULATE( [Measure], DATEADD(Calendar[Date], #, MONTH)) will always work. You can even switch DATEADD for other time intelligence measures and MONTH for other YEAR, etc.


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Dear Allison, thank you for you answer... Unfortunately, this measure dont work :(... I used your calendar but the measure for the next month that it gave is exactly the same as the present month...
this is the mesuare for the present month:
Recount Present Month = SUMX (FILTER (dot, dot [Overnight date]), dot [Count])
The table dot has the following form:
 
Reservation number      type of room        overnight night         Count (count by reservation number and room type)
899                                    single                       4/4/2021                   1
899                                    junior                       4/4/2021                   1
 
Best Regards!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.