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
Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

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!

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!