Check if a least one Colum/field is blank

I need to make a condition for an action that takes the user to a certain view to complete info for certain rows if at least one of them is blank.
Iโ€™m stuck thinking about this.
SELECT() might help but I want to keep it simple.
This didnโ€™t work:

COUNT([CMVINV_Inline][ID_INVITEMS])<>COUNT([CMVINV_Inline][PRECIO_U])

CMVINV_Inline has the list of values to check. List column type
[ID_INVITEMS] is the Key column.
[PRECIO_U] is the column that canโ€™t be blank

The condition is for an action that shouldnโ€™t be enabled if there is no blank field inside [CMINV_Inline][PRECIO_U]

This should be very simple but Iโ€™m smashing my head against the wall with this.
I count on you guys

Solved Solved
0 18 201
1 ACCEPTED SOLUTION

Woohoo!
This is the one

COUNT(
  INTERSECT(
    [CMVINV_Inline][PRECIO_U],
    LIST("")
  )
)<>0

As soon as I add a value inside the last row that was blank, the action dissapears. If I remove the content of any of the rows, leaving it blank, the action come back!

That was a lot of formulas to find the right way
Thanks @Steve and @tsuji_koichi for your valuable time!

View solution in original post

18 REPLIES 18

Update

Tried with

IN(
  "",
  [CMVINV_Inline][PRECIO_U]
)

No luck

COUNT([CMVINV_Inline][ID_INVITEMS])=COUNT([CMVINV_Inline][PRECIO_U]-LIST(""))

What about this ?

Thanks!
This did the trick:

COUNT([CMVINV_Inline][ID_INVITEMS])=COUNT([CMVINV_Inline][PRECIO_U]-LIST(""))

Since I want it to return true if there is any column left, I needed to check if [CMVINV_Inline][PRECIO_U] minus the blank ones is the same as the count of the ID.
Your tip worked like charm!

PS: Can you change your expression from <> to = so that I can mark yours as the solution?

Great to hear it was solved. Correction is made.

Iโ€™m very sorry @tsuji_koichi but I jumped too soon!
Itโ€™s not working as expected. Neither <> or =
Now, credits to you because the expression that you wrote first with <> was right, it just didnโ€™t work.

^ My bad. If I substract the blank ones from the [PRICE_U] list, itโ€™s COUNT() should be the same as the one for the keys. So if both COUNT() are the same, there is no blank values, and I need the opposite.
Iโ€™m sorry again and Iโ€™m still working on this

Some hours ago Im have such problem with "blank"s.
Min() ddnt understand them.
But Im solved my trouble by incrementing all values by 1
Is that help you?

Yeah, itโ€™s a little bit problematic

Update 2

  • When [PRICE_U] has no values, COUNT([CMVINV_Inline][PRECIO_U]) counts the number of fields, eventhough they are blank
  • When [PRICE_U] has no values, COUNT([CMVINV_Inline][PRECIO_U]-LIST("")) counts 0. Thatโ€™s OK but it also counts just the unique values, just like if it where COUNT(UNIQUE([CMVINV_Inline][PRECIO_U]-LIST(""))). So if [CMVINV_Inline][PRECIO_U] is {1, 1, , 12} ; COUNT()=2

COUNT(UNIQUE([CMVINV_Inline][PRECIO_U]-LIST("")))
COUNT([CMVINV_Inline][PRECIO_U]-LIST(""))`

Above two expression should be equivalent in theory.

Itโ€™s working like that.
But I donโ€™t need to count just the unique values, I need every field, it shouldnโ€™t matter if one value is more than once in the list

Iโ€™m under โ€œLegacyโ€ on Data โ†’ Options โ†’ Expression
Iโ€™m gonna check if โ€œConsistentโ€ helps

Yes thats the point of the check.

Otherwise maybe it is an idea that you add the virtual column to refernced table, with expression
IF(ISNOTBLANK([PRECIO_U]),1,0), named it [CountCheck]

Then alter expression to

COUNT([CMVINV_Inline][ID_INVITEMS])=SUM([CountCheck])
COUNT([CMVINV_Inline][ID_INVITEMS])<>SUM([CountCheck])

either way to fit your requirement as alternative workaround?

@tsuji_koichi
I though about that but itโ€™ll be very messy with a lot of VC after a while
Right now I have 70 rows where each one of them has the [CMVINV_Inline] field with between 2 to 20~ rows.
So that would be 140 to 1400 AppFormulas

Steve
Platinum 4
Platinum 4

Try:

ISNOTBLANK(
  SELECT(
    [CMVINV_Inline][_ROWNUMBER],
    ISBLANK([PRECIO_U])
  )
)

Interesting.
On the editor Test shows it working as I want it to work.
Y when there is at least one field blank, N when there arenโ€™t.
On the App it seems like itโ€™s always N

Update 3

These didnโ€™t work

ISNOTBLANK(
  FILTER(
    "DIM_INVITEMS",
    ISBLANK([PRECIO_U])
  )
)

IN(
  LIST(""),
  [CMVINV_Inline][PRECIO_U]
)

Woohoo!
This is the one

COUNT(
  INTERSECT(
    [CMVINV_Inline][PRECIO_U],
    LIST("")
  )
)<>0

As soon as I add a value inside the last row that was blank, the action dissapears. If I remove the content of any of the rows, leaving it blank, the action come back!

That was a lot of formulas to find the right way
Thanks @Steve and @tsuji_koichi for your valuable time!

Top Labels in this Space