Forum Discussion
Filtering Issues for Individual Measures
- Anonymous2 years ago
Hi powerbinovice01 ,
Based on the error message you received, it seems that the function is unable to work with the values of the string type SUMX. The function that you added to your modified measure converts the string values to numeric values, which is why you are now seeing values instead of blanks VALUE.
TOTAL_b = CALCULATE ( COUNT ( 'Table'[Quantite B] ), FILTER ( 'Table', 'Table'[YEAR_MONTH] = EARLIER ( 'Table'[YEAR_MONTH] ) && 'Table'[Article] = EARLIER ( 'Table'[Article] ) && 'Table'[Quantite B] <> 0 ) )This should allow you to filter the values correctly.
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ RongtieIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi powerbinovice01 ,
Based on the error message you received, it seems that the function is unable to work with the values of the string type SUMX. The function that you added to your modified measure converts the string values to numeric values, which is why you are now seeing values instead of blanks VALUE.
TOTAL_b =
CALCULATE (
COUNT ( 'Table'[Quantite B] ),
FILTER (
'Table',
'Table'[YEAR_MONTH] = EARLIER ( 'Table'[YEAR_MONTH] )
&& 'Table'[Article] = EARLIER ( 'Table'[Article] )
&& 'Table'[Quantite B] <> 0
)
)
This should allow you to filter the values correctly.
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.