cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
selimovd Regular Visitor
Regular Visitor

Showing current and the next 2 month

Hello everyone,

 

I want to select a date from a slicer and then my measure should only deliver the selected and the 2 next month:

So if I select 2011-08 on my slicer:

pbi1.png

 

Then I want in all tables just to show the selected month and the following 2 month:

 

 

pbi2.png

 

Somehow I'm a little stuck.

I can get the highest selected date with: 

max(DimDate[FullDateAlternateKey])
 
For the measure I tried:
SumSales+3 = 
VAR maxDate = max(DimDate[FullDateAlternateKey])

RETURN
CALCULATE(SUM(FactInternetSales[SalesAmount]); FILTER(DimDate;DimDate[FullDateAlternateKey]>=maxDate && DimDate[FullDateAlternateKey]<DATEADD(DimDate[FullDateAlternateKey];3;MONTH)))
But somehow this doesn't work at all. Can someone help me?
 
Thank you and best regards
1 REPLY 1
Community Support Team
Community Support Team

Re: Showing current and the next 2 month

Hi @selimovd ,

For your requirement, you could refer to this similar thread firstly.

If you still need help, please share your data sample so that we could help further on it.

In addition, here is another reference.

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 244 members 2,519 guests
Please welcome our newest community members: