Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
hola
estoy intentando crear un parametro con fechas pero me sale este error, alguien sabe q estoy haciendo mal?
Solved! Go to Solution.
couple things:
- Use DateTime.From([Date]) - RangeStart and RangeEnd are already in the right format.
- What's the 0 supposed to do? Drop that
- Only one of the parameters can be inclusive, usually RangeStart. Make RangeEnd exclusive.
RangeStart <= DateTime.From([Date]) and DateTime.From([Date] < RangeEnd
Hi @ceciliatc
This error is because you are comparing data of type DateTime and DateTimeZone.
As lbendlin mentioned, you can use DateTime.From() function to convert DateTimeZone to DateTime type, moreover, you can also use DateTimeZone.RemoveZone() function to remove the time zone information of DateTimeZone, try the following code:
= Table.SelectRows(#"Changed Type", each DateTimeZone.RemoveZone([Date]) >= RangeStart and DateTimeZone.RemoveZone([Date]) <= RangeEnd)
Best Regards,
Jarvis Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Use DateTime.From( ) to make the data types match.
now I am getting this
couple things:
- Use DateTime.From([Date]) - RangeStart and RangeEnd are already in the right format.
- What's the 0 supposed to do? Drop that
- Only one of the parameters can be inclusive, usually RangeStart. Make RangeEnd exclusive.
RangeStart <= DateTime.From([Date]) and DateTime.From([Date] < RangeEnd
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 29 | |
| 27 | |
| 26 | |
| 23 | |
| 16 |
| User | Count |
|---|---|
| 53 | |
| 46 | |
| 38 | |
| 30 | |
| 21 |