cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Eivindeiki
Frequent Visitor

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
MuskanAgarwal
Helper I
Helper I

Hello @Eivindeiki ,

 

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
MuskanAgarwal
Helper I
Helper I

Hello @Eivindeiki ,

 

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 😊

You're an absolute legend! Thanks!

MuskanAgarwal
Helper I
Helper I

Hello @Eivindeiki ,

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 😊
 
 

Hi @MuskanAgarwal., 

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
May 23 2022 epsiode 5 without aka link.jpg

The Power BI Community Show

Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

Power BI Dev Camp Session 22 with aka link 768x460.jpg

Check it out!

Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!