Forum Discussion
DAX - Multiply by Explicit Row Values
- 5 years ago
Hi, tcboutte
You can try a Measure like the following.
GC Scenario =
VAR charges_sum =
CALCULATE ( SUM ( Financial[Charges] ), DISTINCT ( Financial[Person] ) )
VAR val =
CALCULATE (
ROUNDUP ( MAX(Percentage[Value]) , 2 ),
FILTER ( Percentage, Percentage[Date] = MAX ( Percentage[Date] ) ),
TREATAS ( VALUES ( Financial[Person] ), Percentage[Person] )
)
RETURN
charges_sum * val
Here is the pbix.
Best Regards,
Caiyun Zheng
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, tcboutte
You can try a Measure like the following.
GC Scenario =
VAR charges_sum =
CALCULATE ( SUM ( Financial[Charges] ), DISTINCT ( Financial[Person] ) )
VAR val =
CALCULATE (
ROUNDUP ( MAX(Percentage[Value]) , 2 ),
FILTER ( Percentage, Percentage[Date] = MAX ( Percentage[Date] ) ),
TREATAS ( VALUES ( Financial[Person] ), Percentage[Person] )
)
RETURN
charges_sum * val
Here is the pbix.
Best Regards,
Caiyun Zheng
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
That did the trick for us, thank you!!