Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello community,
I am trying to return the number of cumulative days of the year until the last date data available, I am trying something like this but does not work:
-------------------------------------------------------------------------------------------------------------------------------------------
I aprreciate your help
Solved! Go to Solution.
Try
Year count Days =
VAR MaxDate =
MAX ( 'data'[Date] )
VAR DaysWithData =
COUNTROWS (
FILTER (
DATESYTD ( 'Calendar Table'[Date] ),
'Calendar Table'[Date] <= MaxDate
)
)
RETURN
DaysWithData
Try
Year count Days =
VAR MaxDate =
MAX ( 'data'[Date] )
VAR DaysWithData =
COUNTROWS (
FILTER (
DATESYTD ( 'Calendar Table'[Date] ),
'Calendar Table'[Date] <= MaxDate
)
)
RETURN
DaysWithData
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 14 | |
| 7 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 23 | |
| 10 | |
| 10 | |
| 6 | |
| 5 |