Forum Discussion

ThomasWeppler's avatar
ThomasWeppler
Icon for Impactful Individual rankImpactful Individual
4 years ago
Solved

Combining max and if

Hi Power BI community I have a feeling that this question has a somewhat simple answer but I just cannot figure it out so I hope someone here can help me. I want to write a function that look at ...
  • ddpl's avatar
    4 years ago

    Hey I have solution in Power Query,

     

    Step 1: Merge the column todoid and budgetpostid, named as g_b

     

    Step 2: Group by the column g_b

     

     

     

     

     

     

     

     

     

     

     

     

     

    Step 3: Expand the rest table

     

    Step 4: Add Custom Column

    amount_temp = if [id_temp] = [id] then [amount] else 0

     

    Step 5: Add Custom Column

    E. udgifter = [amount_temp]/100

     

    remove unnecessary columns and that's it.

     

    I hope It will work for you.