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! It's time to submit your entry. Live now!
Hi guys,
I have a lot of erros of my CSV file because they have added unexisting dates (leap day). I have to fix it using PowerBI, since I cant touch the CSV file. Any ideas?
Thank you!
if ([ANO_NASCIMENTO] > 2000) then "" else if Date.FromText([DAYDATE] & "/" & [MONTHDATE] & "/" & [YEARDATE]) else ""
Thank you!
Edgard
Solved! Go to Solution.
I'm not sure exactly what they've added to the data - February 29th for all years?
But you can create a Column in your Calendar to help you identify Leap versus Not Leap Year with this formula
Leap/Not Leap Year =
IF (
OR (
MOD ( 'Table'[Year], 400 ) = 0,
AND ( MOD ( 'Table'[Year], 4 ) = 0, MOD ( 'Table'[Year], 100 ) <> 0 )
),
"Leap Year",
"Not a Leap Year"
)Hope this helps! ![]()
I'm not sure exactly what they've added to the data - February 29th for all years?
But you can create a Column in your Calendar to help you identify Leap versus Not Leap Year with this formula
Leap/Not Leap Year =
IF (
OR (
MOD ( 'Table'[Year], 400 ) = 0,
AND ( MOD ( 'Table'[Year], 4 ) = 0, MOD ( 'Table'[Year], 100 ) <> 0 )
),
"Leap Year",
"Not a Leap Year"
)Hope this helps! ![]()
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 40 | |
| 38 | |
| 21 | |
| 21 |
| User | Count |
|---|---|
| 141 | |
| 103 | |
| 63 | |
| 36 | |
| 35 |