Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
99 | |
80 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |