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 197
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