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
Suhel_Ansari
Helper IV
Helper IV

previous -6 Month Data based on the selected date

Hi All,

I was to display Previous 6 Months based on the slicer selection my Measure is as shown below, so what wrong am I doing it's not filtering the Previous 6 month, the relationship is inactive between date and fact table. please Assit me with the DAX measure so that it dispaly only Previous 6 month. Thanks

 

DAX: -Running Items =
VAR ReferenceDate = MAX( 'Evolution Date'[Date])
VAR PreviousDates = DATESINPERIOD( 'Evolution Date'[Date] , ReferenceDate , -6, MONTH)
VAR Result =
CALCULATE( [Running Item's] ,
KEEPFILTERS( PreviousDates),
USERELATIONSHIP( 'Evolution Date'[JoinKey] , ContractFactEvolution[FK_LoadDate] ))
RETURN
Result

 

Relationship :-

Suhel_Ansari_0-1684740959596.png

 

Output :- 

Suhel_Ansari_2-1684741137296.png

 

Regards

Suhel

1 REPLY 1
Suhel_Ansari
Helper IV
Helper IV

@amitchandak  , @Greg_Deckler  , please assist

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.