Forum Discussion
DAX comparison - VALUE OR FORMAT
- 6 years ago
tdailey77 , is po_opportunitydisposition is text column or whole number. Seem like the whole number. If so remove double quotes
example
Opportunities[po_opportunitydisposition]=936710003
tdailey77 , is po_opportunitydisposition is text column or whole number. Seem like the whole number. If so remove double quotes
example
Opportunities[po_opportunitydisposition]=936710003
tdailey77 as amitchandak suggested, if it is a number, don't add quotes but also I would recommend to use IN statement for easy readability
Total Show =
COUNTROWS(filter(Opportunities,Opportunities[po_opportunitydisposition] IN {
"936710003" ,
"936710002",
"936710005",
"936710004" ,
"936710008",
"936710010",
"936710007",
"936710009" }
)
)+0
or
Total Show =
COUNTROWS(filter(Opportunities,Opportunities[po_opportunitydisposition] IN {
936710003,
936710002,
936710005,
936710004,
936710008,
936710010,
936710007,
936710009 }
)
)+0
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
- tdailey776 years agoFrequent Visitor
Thank you for the suggestion!