Forum Discussion
Mister_T
5 years agoAdvocate I
[DAX Measure] Correct values, but wrong total
Dear Community, again, I am lost in the depth of Power BI and DAX. Any help greatly appreciated! I have the following table 'Sales': Deal ID Deal Closed Deal Won Reseller ...
amitchandak
5 years agoSuper User
Mister_T , Try like
COUNT_Reseller_Lost_NEW = CALCULATE ( DISTINCTCOUNT ( 'Sales'[Deal ID] ), FILTER ('Sales' , COALESCE ( CALCULATE( Count('Sales'[Deal Closed]), 'Sales'[Deal Closed] = TRue() , ALLEXCEPT ( 'Sales', 'Sales'[Deal ID] ) ), 0 ) <>0 && 'Sales'[Deal Won] = FALSE () ) )
Mister_T
5 years agoAdvocate I
Thank you, amitchandak! Your help is greatly appreciated.
Unfortunatelly, here again, I get an error message, when using this measure as value for a table (or any other) visual:
"The function COUNT cannot work with values of type Boolean."
Best regards,
Mister_T