Forum Discussion

mlozano's avatar
mlozano
Icon for Helper III rankHelper III
4 years ago
Solved

Formula Excel to DAX

Hello, I have a problem migrating a formula from excel to DAX.  My excel file is as follows:     The formula that I am trying to replicate is the one in the red text called "NR/hl Cat Mix", ...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi mlozano ,

     

    Please try this.

    NR/hl Cat Mix1 = 
    SUMX(
    SUMMARIZE(
        'Worksheet',
        'Worksheet'[Field 1 Name],
        'Worksheet'[Field 2 Name],
        'Worksheet'[Field 3 Name],
        'Worksheet'[Field 4 Name],
        'Worksheet'[Field 5 Name],
    
    ...
    
        'Worksheet'[NR/Hl Cat Base],
        'Worksheet'[NR/Hl Total  Base],
        "Act",[Peso% SKU Act],
        "Base",[Peso% SKU Base]
    ),
    ([Act]-[Base])*('Worksheet'[NR/Hl Cat Base]-'Worksheet'[NR/Hl Total  Base])
    )

    Attached PBIX file for reference.

     

    Best Regards,
    Gao

    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

    How to get your questions answered quickly -- How to provide sample data