This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
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
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 36 | |
| 29 | |
| 29 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 70 | |
| 40 | |
| 33 | |
| 24 | |
| 23 |