Forum Discussion

cbarker's avatar
cbarker
Frequent Visitor
2 years ago

Matrix Including Values Which Are Not Relevant due to Date Calculation - How to Exclude?

I have a matrix table that ultimately is including values that have no data / relevant detail for the measures which are present in my values section. E.g. All customers are showing under every single rep, which should not be the case and should only reflect their current customer base.

 

I believe that this is being driven by my YTD / MTD Working Days Complete to Date measure as when I remove this the matrix is then reflected correctly with the appropriate values. 

 

My date measure is as follows;

YTD Work Days Compl = CALCULATE(COUNTROWS(DimDate),FILTER(DimDate,DimDate[Date]<=TODAY()-1),FILTER(DimDate,DimDate[Year]="2024"),DimDate[Work Day]=1)
 
I've been trying to add this detail to a calculated column to return the correct MTD days to date which have been completed, but I am unable to get back to this value which the measure is returning.
 
Anyone have any thoughts?

2 Replies