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
Anonymous
Not applicable

Measure for Relative date - Current month +1 month

Hi community, 

I would like a measure that returns the expected sales for next month and next month only without having to include the date field in the table. As of now, I have managed to do so for every month +1 when Year Month is included in the table, but as mentioned I would like a measure where in this case only the 3 102 484,32 is displayed. This is a live connection, so needs to be a measure. 

Eivindeiki_2-1638778275677.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hello @Anonymous ,

 

Just add the below measure and I hope you will achieve the result:

  • CALCULATE([SalesNextMonth],FORMAT('Table'[YearMonth],"YYYY-MM")=FORMAT(NOW(),"YYYY-MM"))

If I answered your query than mark my post as a solution! Appreciate your Kudos!! !!

For any queries please let me know 😊

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hello @Anonymous ,

 

Just add the below measure and I hope you will achieve the result:

  • CALCULATE([SalesNextMonth],FORMAT('Table'[YearMonth],"YYYY-MM")=FORMAT(NOW(),"YYYY-MM"))

If I answered your query than mark my post as a solution! Appreciate your Kudos!! !!

For any queries please let me know 😊
Anonymous
Not applicable

You're an absolute legend! Thanks!

Anonymous
Not applicable

Hello @Anonymous ,

Is the below image showing value as expected?

MuskanAgarwal_0-1638778992552.png

I have used the following measures:

  1. MSales = SUM('Table'[Sales])
  2. SalesNextMonth = CALCULATE([MSales],DATEADD('Table'[YearMonth],1,MONTH))

If I answered your query than mark my post as a solution! Appreciate your Kudos!! !!

For any queries please let me know 😊
 
 
Anonymous
Not applicable

Hi @Anonymous., 

Thanks for your reply. 
Unfortunately not, I need a measure that show January only, like below, without using the relative date filter. 

Eivindeiki_0-1638780053674.png

 

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