Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Filter Latest Quarter

Hello   Apologies if this has been answered in another post. I have searched but cannot find the answer I'm looking for. I'm trying to create a measure to show the sum a value for the latest quart...
  • Anonymous's avatar
    Anonymous
    5 years ago
    [Rebate Current Quarter] =
    CALCULATE(
    	[Rebate Sum],
    	CALCULATETABLE(
    		TOPN(1,
    			SUMMARIZE(
    				YourFactTable,
    				'Date'[FY Year & Quarter]
    			),
    			'Date'[FY Year & Quarter],
    			DESC
    		),
    		ALL( YourFactTable )
    	),
    	ALL( 'Date' )
    )