Virtual column with incorrect data in view, correct in form

RaulFV
New Member

A virtual column in a table obtains data from another table, in form view the value is correct, but in detail view is incorrect.

When I test the formula the value is correct.

Virtual column formula:
lookup([_THISROW].[Item], “ElementosTickets”, “Id”, “ÚltimoPrecio”)

Solved Solved
0 4 195
1 ACCEPTED SOLUTION

RaulFV
New Member

It seems that the problem was in the origin of the data.
The column origin has the formula:
ANY(
SELECT(DetalleTickets[Precio], (and([_THISROW].[ÚltimoTicket] = [Ticket], [_THISROW].[Id] = [Elemento])))
)
This depends on other virtual column in the table (Último ticket) that had a formula that used [Related …] and type ref.
I change the type to number and the formulta to:
Max(
SELECT(DetalleTickets[Ticket], [_THISROW].[Id] = [Elemento])
)
Now it works fine.

View solution in original post

4 REPLIES 4

Steve
Platinum 4
Platinum 4

That’s not all that’s different:

3X_9_6_960bc810078b90765a26583f1bf5199910e5c78c.png

3X_e_a_ea8f63f1cbbe088c8430aec4011c951cd186c468.png

Looks to me like they’re two different row with different Item column values.

The problem affect several columns, I only show one for simplicity.

I don’t understand the answer, can you explain a little more?

RaulFV
New Member

It seems that the problem was in the origin of the data.
The column origin has the formula:
ANY(
SELECT(DetalleTickets[Precio], (and([_THISROW].[ÚltimoTicket] = [Ticket], [_THISROW].[Id] = [Elemento])))
)
This depends on other virtual column in the table (Último ticket) that had a formula that used [Related …] and type ref.
I change the type to number and the formulta to:
Max(
SELECT(DetalleTickets[Ticket], [_THISROW].[Id] = [Elemento])
)
Now it works fine.

Well done!

Top Labels in this Space