Forum Discussion
ania_roh
Helper III
3 years agoproblem with Dax measure
Hello, I need some help in building my measure because I can´t find a way. I would be very grateful if you could help me. So, I have three columns (in the same table): column of localization_desti...
ania_roh
Helper III
3 years agoYes, Mahesh0016, thank you.
I created powerbi sample but I don´t find a way to attach it here.
The table would be like that : (localizacion_destino, localización_destino_original, value)
| 1111 | 1111 | 1 |
| 2343 | 1111 | 2 |
| 2345 | 2345 | 3 |
| 7642 | 3456 | 4 |
| 3456 | 3456 | 5 |
| 1111 | 2343 | 6 |
| 2343 | 1111 | 7 |
| 7642 | 7642 | 8 |
| 1111 | 2345 | 9 |
| 7642 | 4582 | 10 |
The measure X would be like that:
The visualization is like that:
Now I need calculate Y (the next column in the visualization) and I don´t know how.
For this example, for ID_destino = 1111, Y should give 15:
Thank you a lot
FreemanZ
Super User
3 years agohi ania_roh
Not sure if i fully get your, try to write the measure like this:
Y =
VAR _dest = MAX(TableName[DestOrig])
RETURN
SUMX(
FILTER(
ALL(TableName),
TableName[Dest] = _dest
&&TableName[DestOrig] <> _dest
),
TableName[Value]
)
i tried and it worked like this: