Forum Discussion
Measure using slicer value in two different ways
- 1 year ago
Hi M_Ulloa
The issue with your Measure3 returning the same value across all rows stems from the use of SELECTEDVALUE, which doesn't behave as expected when used in a row-level evaluation within a table visual. Instead, you’ll want to leverage the current row context to dynamically reference the “Initiating Org” rather than relying solely on the slicer’s value.
Could you please modify your Measure 3 like this:
Measure3 = CALCULATE( [Count], FILTER( ALL(myTable), myTable[Initiating Org] = EARLIER(myTable[Initiating Org]) && myTable[Ending Org] = SELECTEDVALUE(myTable[Ending Org]) && myTable[Initiating Org] <> myTable[Ending Org] ))Alternatively, consider using a calculated column if you're looking to simplify row-level logic.
Hi M_Ulloa
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.