Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
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 with "C," and so on.
I would like to be able to place this on a map, where the bubble size on the map indicates the number of "A's," the number of "B's," etc.
Any help would be much appreciated 🙂
Solved! Go to Solution.
@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 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
@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 🤔
@LearningBI1986 you put in __Merge2 but __Merge2 variable not you create see agian your code you create __Table Variable.
VAR __Result = COUNTROWS(__Table)
THANK YOU!!
@LearningBI1986 Where that red underline is, that needs to be __Table, not __Merge2.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |