Forum Discussion
Filter values for last Date only
Hi,
What exactly do you mean? What result are you expecting?
the last month in this Matrix is May... if I use the filter, it should only work for the column of May. Right now it will filter the entire Matrix. i only want to Filter May (the lastest Month in the Matrix)
- Ashish_Mathur8 years agoSuper User
Hi,
So you only want to see those rows where in the last month of the matrix, the matched rates are between the conditions specified in the slicer.
Am i correct?
If yes, then share the link from where i can download your PBI file.
- ilcaa728 years agoHelper IV
thanks. I want to see all the data. But the filter should only take into account the values in the lastest date column (in this case May).
if you filter between 70-80, but May column does not contain values between 70-80 it should not filter the table, even though values 70-80 exist in another column. hope that made sense.
https://1drv.ms/u/s!Av69y58QJYzRjyE4igUTbHkFchba
thanks again.
- v-danhe-msft8 years agoMicrosoft Employee
Hi ilcaa72,
Based on my test, you could refer to below steps:
Create two measures:
Max Month = FORMAT(MAXX(ALL('test'),IF(ISFILTERED(test[MatchedRate]),CALCULATE(MAX('test'[Date])))),"mmmm")Filter Value = CALCULATE(SUM(test[MatchedRate]),FILTER('test','test'[Date].[Month]=[Max Month]))Result:
You can also download the PBIX file to have a view.
https://www.dropbox.com/s/hvu10z27bddn9hh/Filter%20values%20for%20last%20Date%20only.pbix?dl=0
Regards,
Daniel He