Forum Discussion

hb's avatar
hb
Frequent Visitor
3 years ago
Solved

DAX product function

Hi everyone,   I am struggling DAX PRODUCTX funcction in power bi to have a result same like PRODUCT function in EXCEL. But unfortunatly didn't get the expected result as showed in excel.   EXCE...
  • Fowmy's avatar
    3 years ago

    hb 

    Please try this measure. based on your example, the following solution would work but I am not sure about what kind of actual or production data you will be implemeting on. This give an idea 🙂

    PROD3 = 
    
    CALCULATE(
       PRODUCTX( 'Table' , 'Table'[Column2] ),
        WINDOW(
            0,
            REL,
            -1,ABS,
            SUMMARIZE( ALLSELECTED('Table') , 'Table'[Column1]),
            ORDERBY( 'Table'[Column1] )
        )
    )