Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have stored a certain PastThreshold date from Excel named range like this. As you can see the final value is already formatted as date:
Next, I want to filter a certain Date column from a table to be AFTER PastThreshold
I get the "We cannot apply operator < to types DateTime and Date" error.
However both of the values are already formatted as date.
Can somebody help me?
Solved! Go to Solution.
Hi @freelensia
Are you sure PastThreshold is stored as date and not DateTime? In the first pic you show, the icon seems to have a clock, which would indicate DateTime. The result shown at the top also shows the time (2016/01/01 12:00:00)
Hi @freelensia
Are you sure PastThreshold is stored as date and not DateTime? In the first pic you show, the icon seems to have a clock, which would indicate DateTime. The result shown at the top also shows the time (2016/01/01 12:00:00)
Thanks that was indeed the problem. I converted the variable using DateTime.Date(xxx) and that fixed the problem.
User | Count |
---|---|
9 | |
7 | |
5 | |
5 | |
4 |
User | Count |
---|---|
14 | |
13 | |
8 | |
6 | |
6 |