Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello,
I'm not very good to Power Query and I don't know why it doesn't work :
if [Order created] >= 2022-01-01 & [Order created] <= 2022-12-31 then 1 else 0
Thank you for your help
Solved! Go to Solution.
if[Date] >= #date(2022,01,01) and [Date] <= #date(2022,12,31)then 1 else 0
if[Date] >= #date(2022,01,01) and [Date] <= #date(2022,12,31)then 1 else 0
This didn't work for me, the entire formula worked until I put text in after then.
Could you take a look and see if you know the solution:
IF ([CancelTime] - [StartTime]) >= Time.Minute(10) and Time.Minute (18) then "Yes" else ""
only the "Yes" is failing and I can't seem to resolve it.
Without seeing the data it's difficult to give a correct answer. If you keep the calculation within one set of brackets maybe it will work?
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
73 | |
71 | |
55 | |
38 | |
31 |
User | Count |
---|---|
71 | |
64 | |
60 | |
50 | |
45 |