When using the firstValue function, any fields used in the calculation must be included in the visual to display the value, and you can then hide them if you don’t need them to be visible.
Hi @Ali_B,
Since we have not heard back, I’ll go ahead and close out this topic. However, if you have any additional questions, feel free to create a new post in the community and link this discussion for relevant information if needed.