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
Hi All,
I have a column that contains (formated as time) minutes. I am trying to writie an If statement like this: If (column that contains minutes) is less than 30 minutes, then "YES" otherwise "NO". I get this error after trying to write the formula "DAX comparison operations do not support comparing values of type DATE with values of type TEXT.
Any ideas on how best to write this formula??
Thanks
Solved! Go to Solution.
Below should help to convert hour to minutes and compare in IF statement
IF( HOUR(Table1[Column1]) * 60 + MINUTE (Table1[Column1]) <=30,"Yes", "No")
Please provide a sample of how your minutes column data is represented and how you are representing 30 mins in the formula
The minutes column looks like this example 0:14,1:05, etc.
This is how I tried writing the formula: If(Column name<=("0:30"), "Yes", "No")).
Hope this explains it clearly.
Thanks
Below should help to convert hour to minutes and compare in IF statement
IF( HOUR(Table1[Column1]) * 60 + MINUTE (Table1[Column1]) <=30,"Yes", "No")
Hi,
I just used your suggested formula and it worked like magic.
Many thanks for the quick solution.
Regards
Pls mark this as a solution
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 |
|---|---|
| 30 | |
| 24 | |
| 23 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 61 | |
| 35 | |
| 30 | |
| 23 | |
| 22 |