Forum Discussion
distinct count with condition
Hi clarissa ,
Try trouble shooting your DAX
Order PMKT = CALCULATE(DISTINCTCOUNT(sales[order_no]), FILTER(google_analytics_order_no, google_analytics_order_no[source_medium] = "google / cpc" )
See if the formula is returning the correct value for "google/cpc".
Also, remove all trailing spaces by Trimming this column in Query Editor.
Regards,
Harsh Nathani
Appreciate with a Kudos!! (Click the Thumbs Up Button)
Hi Harsh
Thank you for your feedback. Why do you think it is linked to the trailing spaces? I get numbers but the Google Analytics number is higher than the Sales Table Number, which doesn't make sense... Is the DAX Formula right or does it react differently if the distinctcount is applied on another table than the filter table?`
Thank you!