The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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 =
CALCULATE (
SUM ( 'Stock'[UNIQUE] );
FILTER (
ALLEXCEPT ( 'Stock'; 'Stock'[GRPCODE] );
'Stock'[DATEPURCH] <= MAX( 'Stock'[DATEPURCH] )
) ;
'Stock'[Datumverkoop:] = BLANK ()
)
-
CALCULATE (
SUM ( 'Stock'[UNIQUE] );
FILTER (
ALLEXCEPT ( 'Stock'; 'Stock'[GRPCODE] );
'Stock'[DATEPURCH] <= MAX( 'Stock'[DATEPURCH] )
) ;
'Stock'[Datumverkoop:] <> BLANK ()
)
-------------------------------------------------------------------------------
Datumverkoop: = CALCULATE([Laatste transactie:];
Stock[Custom]="geretouneerd")
+CALCULATE([Laatste transactie:];Stock[Custom]="vernietigd")
+CALCULATE([Laatste transactie:];Stock[Custom]="verkocht")
+CALCULATE([1e transactie transactie:];Stock[Custom]="bemanning")
+CALCULATE([Laatste transactie:];Stock[Custom]="gestolen")
+CALCULATE([Laatste transactie:];Stock[Custom]="resource")
The measure datumverkoop: has the format date, what is goning wrong?
Solved! Go to Solution.
@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
This is the measure of "laatste transactie"
Laatste transactie: = MAX(History[EDATE])
I hope someone can help my
@Anonymous Not at all. I kown the problem but i dont know the solution? Can you help my to change the measure?
@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
User | Count |
---|---|
65 | |
60 | |
55 | |
53 | |
30 |
User | Count |
---|---|
180 | |
88 | |
72 | |
48 | |
46 |