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
selimovd
Super User
Super User

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
v-piga-msft
Resident Rockstar
Resident Rockstar

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
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.