Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Solved! Go to Solution.
@Anonymous
Measure = COUNTROWS ( FILTER ( Table1, [Execution date] <= TODAY () ) )
@Anonymous
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.
Measure1
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)
@Anonymous
Measure = COUNTROWS ( FILTER ( Table1, [Execution date] <= TODAY () ) )
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
96 | |
77 | |
66 | |
53 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |