Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.