Forum Discussion
Ronald123
Resolver III
9 years agoFunction calculate with true/false expression is not allowed
I have the follow warning: A function 'CALCULATE' has been used in a True/False expression that is used as a table filter expression. This is not allowed. Whit this measure: Cumulative Supply...
- Anonymous9 years ago
Ronald123,
Create your measure using the following DAX instead.Cumulative Supply = CALCULATE ( SUM ( 'Stock'[UNIQUE] ); FILTER ( ALLEXCEPT ( 'Stock'; 'Stock'[GRPCODE] ); 'Stock'[DATEPURCH] <= MAX( 'Stock'[DATEPURCH] ) ) ; FILTER('Stock';'Stock'[Datumverkoop:] = BLANK ()) ) - CALCULATE ( SUM ( 'Stock'[UNIQUE] ); FILTER ( ALLEXCEPT ( 'Stock'; 'Stock'[GRPCODE] ); 'Stock'[DATEPURCH] <= MAX( 'Stock'[DATEPURCH] ) ) ; FILTER('Stock';'Stock'[Datumverkoop:] <> BLANK ()) )
Regards,
Lydia
Ronald123
Resolver III
9 years agoThis is the measure of "laatste transactie"
Laatste transactie: = MAX(History[EDATE])
I hope someone can help my
- Anonymous9 years agoNot applicable
- Ronald1239 years ago
Resolver III
Anonymous Not at all. I kown the problem but i dont know the solution? Can you help my to change the measure?
- Anonymous9 years agoNot applicable
Ronald123,
Create your measure using the following DAX instead.Cumulative Supply = CALCULATE ( SUM ( 'Stock'[UNIQUE] ); FILTER ( ALLEXCEPT ( 'Stock'; 'Stock'[GRPCODE] ); 'Stock'[DATEPURCH] <= MAX( 'Stock'[DATEPURCH] ) ) ; FILTER('Stock';'Stock'[Datumverkoop:] = BLANK ()) ) - CALCULATE ( SUM ( 'Stock'[UNIQUE] ); FILTER ( ALLEXCEPT ( 'Stock'; 'Stock'[GRPCODE] ); 'Stock'[DATEPURCH] <= MAX( 'Stock'[DATEPURCH] ) ) ; FILTER('Stock';'Stock'[Datumverkoop:] <> BLANK ()) )
Regards,
Lydia