Forum Discussion

SL_1983's avatar
SL_1983
Helper II
6 years ago
Solved

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...
  • SL_1983's avatar
    SL_1983
    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] )
     
    )
    )