Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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 :-
Output :-
Regards
Suhel
User | Count |
---|---|
84 | |
77 | |
64 | |
51 | |
46 |
User | Count |
---|---|
101 | |
42 | |
41 | |
39 | |
36 |