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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi friends,
It looks quite simple and it works when I apply the "IF" function on the "Date" column to perform an operand on column 'kWh' as shown below. However, I have no success when I add multiple criteria to 'Date' for example I want to do this multiplication only for 3 days and my code is as below but the 'New column' comes with "Error"
if [date]=#date(2021,05,02) or [date]=#date(2021,05,03) then [kWh]*1000 else [kWh]
any idea please!
Solved! Go to Solution.
Thanks, Vera, I think I solved it with expanding it into multiple 'else' and 'if' 🙂
Thanks, Vera, I think I solved it with expanding it into multiple 'else' and 'if' 🙂
Hi @Alirezam
What is the error? I saw your Date column was typed [date] here, is it the reason? M is case sensitive
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 16 | |
| 12 | |
| 10 | |
| 7 | |
| 6 |