I have a column with dates like 02/04/2019,02/5/2019,.....02/28/2019.
That column values should compare with today date(02/05/2019) and get the count of rows . for today i need to get the count as 2. tomorrow the count is 3.
if(date<=today()) the count is 2
Go to Solution.
COUNTROWS ( FILTER ( Table1, [Execution date] <= TODAY () ) )
View solution in original post
I created 2 measures, first one counts the rows starting today's date, second one returns the count as 2 for today and all past dates and then 3 for tomorrow, 4 for day after tomorrow and so on.
Countrows = CALCULATE(COUNTROWS(Table1), FILTER(ALLSELECTED(Table1), Table1[Execution date]>=TODAY() &&Table1[Execution date]<=MAX(Table1[Execution date])))
Count = IF([Countrows]<2,2,[Countrows]+1)
Check out new user group experience and if you are a leader please create your group!
Check out how to claim yours today!
Test your skills now with the Cloud Skills Challenge.