Forum Discussion
SL_1983
6 years agoHelper II
drilldown
Good morning, I have a question. I want to create 2 drilldwon tables: In the left table I want the following details: Product Omschrijving, Verpakking Omschrijving, Hoeveelheid. Then I want to ab...
- 6 years ago
I found the solution:
sumx('Ingrediënten';('Ingrediënten'[Verpakking Gewicht Duurste Prijs]* if (('Ingrediënten'[Hoeveelheid]/4)* SELECTEDVALUE('Slicer Aantal Personen'[Aantal Personen]) > 'Ingrediënten'[Verpakking Gewicht Duurste Prijs];( ROUNDUP (DIVIDE ((('Ingrediënten'[Hoeveelheid]/4)*SELECTEDVALUE('Slicer Aantal Personen'[Aantal Personen]));'Ingrediënten'[Verpakking Gewicht Duurste Prijs]);0));1)* RELATED ( 'Product'[Duurste Prijs] )))
v-zhenbw-msft
6 years agoCommunity Support
Hi SL_1983,
Sorry for that but we cannot understand your issue clearly , Could you please try to verify if the following measure can output the desire result you want?
Test =
SUMX (
'Ingrediënten',
(
'Ingrediënten'[Verpakking Gewicht Goedkoopste Prijs]
* IF (
( 'Ingrediënten'[Hoeveelheid] / 4 )
* SELECTEDVALUE ( 'Slicer Aantal Personen'[Aantal Personen] ) <= 'Ingrediënten'[Verpakking Gewicht Goedkoopste Prijs],
1,
ROUND (
DIVIDE (
'Ingrediënten'[Hoeveelheid],
'Ingrediënten'[Verpakking Gewicht Goedkoopste Prijs]
)
* RELATED ( 'Product'[Goedkoopste Prijs] ),
0
)
)
)
)
The result like this,
If it doesn’t meet your requirement, could you please provide the desire result based on the table that you have shared?
BTW, pbix as attached.
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.