Forum Discussion
Anonymous
4 years agoNot applicable
Measure - Countif <= Date
Hello, In a visualization, I want showing in the y axis for each data series item count of total count of AgeGT14Days count of AgeEqORLt14Days I have 2 DAX expressions AgeGT14Days = ...
- 4 years ago
Hi Anonymous ,
Is that you want to calculate how many days are there depend on Min work center?
the results of two centers are same due to the function ALL(), it remove all the filter, so the result is the same. my solution is add more detail for the filter.
Try the following expression:
AgeGT14Days = COUNTROWS( FILTER( ALL( 'AssetManagement Open_N2' ), 'AssetManagement Open_N2'[Created on] < TODAY() - 14 && [Min work center] = MAX( 'AssetManagement Open_N2'[Min work center] ) ) )If i misunderstood what you want, please let me know.
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
VijayP
4 years agoCommunity Champion
Anonymous
create a DimDate Table instead of using the Date column Directly in the DAX
and then use below , hope it helps
AgeGT14Days = COUNTROWS(FILTER(ALL(DateDim),Datedim[Date] < today()-14))
- Anonymous4 years agoNot applicable
Thanks for your help,
Seems I am now getting the count of the DimDate Table instead.
AgeGT14Days = COUNTROWS(FILTER(ALL(DimDate),DimDate[DateKey]< today()-14))