Forum Discussion
How to Multiply rows in a table visualization
Hello guys,
i have a table, that the result in percentage is a measure (have column). i want to multiply the first row with all below as follows:
The want column is the multiplication of the have as follow:
i have no ideia how i can do that. Can you guys help me? Thanks
4 Replies
- parry2kSuper User
Gionedis I assume you have sort or key column for each bucket, if not you need to add one and then write following measure:
New Measure = VAR __MyKey = SELECTEDVALUE ( Test[Key] ) VAR __Table = FILTER ( ALL ( Test ), Test[Key] > __MyKey ) RETURN PRODUCTX ( __Table, [My Measure] * 1 ) + 0and here is the output
- GionedisHelper I
Hello, i think im foing it wrong: for the bucket i created a column ordering:
then replicated your dax formula:
the result was 0:
for instance, the roll rate NBV measure is something like this:
it goes until the Write-Off
Thanks
- AnonymousNot applicable
Hi Gionedis ,
Please try code as below.
New = VAR _SUMMARZIE = SUMMARIZE ( ALL ( 'tfat_carteira' ), 'tfat_carteira'[CC_AGING], 'tfat_carteira'[AgingValue], "Roll Rate NBV", [Roll Rate NBV] ) VAR _PRODUCT = ADDCOLUMNS ( _SUMMARIZE, "PRODUCT", PRODUCTX ( FILTER ( _SUMMARIZE, [AgingValue] > EARLIER ( [AgingValue] ) ), [Roll Rate NBV] ) ) RETURN SUMX ( FILTER ( _PRODUCT, [CC_AGING] = MAX ( 'tfat_carteira'[CC_AGING] ) ), [PRODUCT] )Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.