Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hello, I'm stuck at a probably pretty simple issue with the IF function. I have a column in time format (hh:mm:ss) and what I want to do with it is to create another where I get a 1 whenever the time is over 00:00:45 and a 0 if it's equal or below that. I did use this function before however I never got a syntax error for that. Any suggestions? Thank you!
Solved! Go to Solution.
is this what you want?
Column = if('Table'[Column1]>time(0,0,45),1,0)
Proud to be a Super User!
Hi,
Have you tried using IF((["Date column"])>TIME(00,00,45),1,0)?
I hope that helps
Hi,
Have you tried using IF((["Date column"])>TIME(00,00,45),1,0)?
I hope that helps
Indeed it did! Thank you! Is there any specific reason why it only works with the TIME function? I've used it with other time formatted columns (e.g. for deductions) and I did not have to use this additional function. Thanks again!
is this what you want?
Column = if('Table'[Column1]>time(0,0,45),1,0)
Proud to be a Super User!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 44 | |
| 43 | |
| 38 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 64 | |
| 31 | |
| 29 | |
| 24 |