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
Annemie19
Helper II
Helper II

next available date after today

Hi There, 

 

I have the following table below. 

 

Annemie19_0-1601388646371.png

 

 

I want to only see the first 'measurementnextdate' after the measurementDate in the slider. 

For instance, if today is 29/09/2020. then it should only show items for 01/11/2020 for the specific Covenant ID, there are more than one different Covenant ID's. 

 

Can someone please help me with a measure for this

 

3 REPLIES 3

Hi Steve, 

 

Its is not allowing me to upload a table.

 

This is what I tried... 

 

AA Next MDate =

VAR FirstMeasurementDate = [AA First MDate]

 

VAR DatesGreaterThanValueDate =

FILTER (

SUMMARIZE (VwCovenant,VwCovenant[Measurementnextdate], VwCovenant[CovenantID]),

VwCovenant[Measurementnextdate] > FirstMeasurementDate

)

VAR NextImmediateDate =

MINX ( DatesGreaterThanValueDate, VwCovenant[Measurementnextdate] )

RETURN

NextImmediateDate

 

But it is returning this, which is not correct as I only want it to show the first row. 

Capture2.JPG

 

This is what I tried... 

 

AA Next MDate =

VAR FirstMeasurementDate = [AA First MDate]

 

VAR DatesGreaterThanValueDate =

FILTER (

SUMMARIZE (VwCovenant,VwCovenant[Measurementnextdate], VwCovenant[CovenantID]),

VwCovenant[Measurementnextdate] > FirstMeasurementDate

)

VAR NextImmediateDate =

MINX ( DatesGreaterThanValueDate, VwCovenant[Measurementnextdate] )

RETURN

NextImmediateDate

 

But it is returning this, which is not correct as I only want it to show the first row. 

 

Covenant ID

EntityId

DealId

AA Next MDate

PerformanceDate

Final Measurement Date

327

21707588

40820

30/11/2020

15/12/2020

31/03/2026

327

21707588

40820

31/01/2021

14/01/2021

31/03/2026

327

21707588

40820

28/02/2021

17/03/2021

31/03/2026

327

21707588

40820

30/04/2021

14/04/2021

31/03/2026

336

21668122

28252

01/11/2020

11/10/2020

01/01/2025

336

21668122

28252

01/12/2020

14/08/2020

01/01/2025

336

21668122

28252

01/01/2021

11/12/2020

01/01/2025

 

 

 

 

 

 

 

 

 

 

 

 

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