The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi,
I have the below if that is flagging any cells that have a number < 60 in a column, but there are also blanks in that column that i want exxcluding, how do I do it:
Solved! Go to Solution.
If blank input values shall result in blank output value:
Flag_1HrWait = IF(NOT(ISBLANK(ED[Time to seen (minutes)])), IF(ED[Time to seen (minutes)] < 60, 1, 0))
If blank input values shall result in 0 output value:
Flag_1HrWait = IF(AND(ED[Time to seen (minutes)] < 60, NOT(ISBLANK(ED[Time to seen (minutes)]))), 1, 0)
thank you very much. What i am finding is the measure is not showing the field 'ED[Time to seen (minutes)'
in the selection and i dont know why because it is a number field? what am I not seeing??
sorry i accepted the solution and not sure if that closed this call
This code only works for a calculated column, not for a measure. Maybe you have chosen new measure instead of new column? If unsere, you could share your file.
The field '[Time to seen (minutes)' is a field built with a SQL table it is not anything I am calcuating in power bi. It contains numbers and blanks
Flag_1HrWait = IF(NOT(ISBLANK(ED[Time to seen (minutes)])), IF(ED[Time to seen (minutes)] < 60, 1, 0))
Can you provide the file including the code that produces the error, pls.?
If blank input values shall result in blank output value:
Flag_1HrWait = IF(NOT(ISBLANK(ED[Time to seen (minutes)])), IF(ED[Time to seen (minutes)] < 60, 1, 0))
If blank input values shall result in 0 output value:
Flag_1HrWait = IF(AND(ED[Time to seen (minutes)] < 60, NOT(ISBLANK(ED[Time to seen (minutes)]))), 1, 0)
User | Count |
---|---|
17 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
12 | |
9 | |
8 |