Forum Discussion
sleekpeek
4 years agoRegular Visitor
Count Blank Values with Others in Measure
I have the query below. For segment, I need to count 2 values (value 1 and value 2) plus any blank values into the query. Can I do this?
[i've amended the table and field values below to generic ones]
CALCULATE(SUM(Opp[ARR]), FILTER(Opp, Opp[StageName] IN { "3", "4}), FILTER(Account, Account[Segment] IN { "value1", "value2"}),USERELATIONSHIP(date[Date])) etc
Thanks
6 Replies
- amitchandak
Super User
sleekpeek , try like
CALCULATE(SUM(Opp[ARR]), FILTER(Opp, Opp[StageName] IN { "3", "4}), FILTER(Account, ( Account[Segment] IN { "value1", "value2"} || isblank(Account[Segment]) ) ),USERELATIONSHIP(date[Date]))
- sleekpeekRegular Visitor
I tried, and get this error
- sleekpeekRegular Visitor
when I add in BLANK() the query accepts it, however the values do not change and i'm missing a considerable amount 🙂 I've checked my visual, page and all pages filters and i'm not filtering anywhere to exclude these blanks.
when exporting, it looks like this:
The segment field references the field to the left ... should I add something to the segment field instead?
any other suggestions guys .. thanks so far