Hi Team,
Im trying to build an expression that returns the value of a certain column, of a row, of a table called “SERVICES”.
This table contains the different services, and the different columns contain the different prices of the services according to the number of customers.
for example, when [BASE] = 2. I need the expression to return the value of the column “SERVICES [USD 2]”
How should I structure the expression so that the column that the formula returns to me changes according to the base quantity?
This is the closest that I have managed to do
ANY(
SELECT(
SERVICIOS[USD 1],
AND([ID]=[_THISROW].[SERVICIO],
[BASE]=1)
OR(
ANY(
SELECT(
SERVICIOS[USD 2],
AND([ID]=[_THISROW].[SERVICIO],
[BASE]=2)
))
OR(
ANY(
SELECT(
SERVICIOS[USD 3],
AND([ID]=[_THISROW].[SERVICIO],
[BASE]=3)
))
)
)
))
Thanks for helping!!



