Forum Discussion
hb
3 years agoFrequent Visitor
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...
- 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] ) ) )
Fowmy
3 years agoSuper User
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] )
)
)