Forum Discussion
Filter most recent date
- Anonymous4 years ago
Hi Anonymous ,
You can create a measure as below, please find the details in the attachment.
OMNew Volume = VAR _recentdate = CALCULATE ( MAX ( 'CA Omega'[Request Release Date] ), ALLSELECTED ( 'CA Omega' ) ) RETURN CALCULATE ( DISTINCTCOUNT ( 'CA Omega'[Request ID] ), FILTER ( ALLSELECTED ( 'CA Omega' ), 'CA Omega'[Request Release Date] = _recentdate ) )Best Regards
Hello,
This works! thanks. But is it possible to count rows all entrys with the most recent date? It only return 1 transaction
Anonymous
Please clarify with example
- Anonymous4 years agoNot applicable
Hello,
Here it counts how many recent so it returns 1 value. The thing is I want to count rows of request ID that has the most recent date, It should return 10 value since there are 10 RequestID that was dated on June 2 (which is recent ATM) so i tried using this code but in visualizer it says it coudnt load the data for this visualOMNew Volume =VAR FirstDateEver =CALCULATE ( MIN ( 'CA Omega'[Request Release Date] ), REMOVEFILTERS () )RETURNCALCULATE (COUNTROWS( 'CA Omega'),'CA Omega'[Request ID],'CA Omega'[Request Release Date] = FirstDateEver)- tamerj14 years ago
Community Champion
Anonymous
Please tryOMNew Volume = VAR FirstDateEver = CALCULATE ( MIN ( 'CA Omega'[Request Release Date] ), REMOVEFILTERS () ) RETURN CALCULATE ( DISTINCTCOUNT ( 'CA Omega'[Request ID] ), 'CA Omega'[Request Release Date] = FirstDateEver, REMOVEFILTERS () )- Anonymous4 years agoNot applicable
Hello, It still returns 1 value 😞
- tamerj14 years ago
Community Champion
Anonymous
Would you please RETURN FirstDateEver variable and see the results?- Anonymous4 years agoNot applicable
Yah already did but it still count 1 value