Forum Discussion
LearningBI1986
3 years agoFrequent Visitor
Counting multiple values in a single column
Hi there I am learning BI. Right now, for simplistic reasons, I have a column of postal codes. I would like to count how many postal codes begin with "A," how many begin with "B," how many begin w...
- 3 years ago
LearningBI1986 Perhaps create a DAX measure like this?
Bubble Size Measure = VAR __PC = MAX('Table'[PostalCode]) VAR __FirstChar = LEFT(__PC, 1) VAR __Table = FILTER(ALL('Table'), LEFT([PostalCode], 1) = __FirstChar) VAR __Result = COUNTROWS(__Table) RETURN __Result
LearningBI1986
3 years agoFrequent Visitor
Greg_Deckler
Thank you for getting back! That looks promising.
If you don't mind, I'm going to attempt to paste a screenshot here. If you could tell me what I'm doing wrong, I would really appreciate it 🤔
Greg_Deckler
3 years agoCommunity Champion
LearningBI1986 Where that red underline is, that needs to be __Table, not __Merge2.