Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I want to calculate how many postcodes are from the same Area Code. I've tried to use a calculated column with this but it doesn't work:
Occurrences = CALCULATE( COUNT([AreaCode]); FILTER(Area; [AreaCode] = EARLIER('Area'[AreaCode])))
To give an example: I want to calculate how many orders are from SE6 or another area.
Solved! Go to Solution.
Solved:
Occurrences = CALCULATE(
COUNT(
LocationandStoreType[AreaCode]
),
FILTER(
LocationandStoreType,
LocationandStoreType[AreaCode]=EARLIER(LocationandStoreType[AreaCode])
)
)
Solved:
Occurrences = CALCULATE(
COUNT(
LocationandStoreType[AreaCode]
),
FILTER(
LocationandStoreType,
LocationandStoreType[AreaCode]=EARLIER(LocationandStoreType[AreaCode])
)
)
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
25 | |
10 | |
8 | |
6 | |
6 |
User | Count |
---|---|
30 | |
11 | |
11 | |
10 | |
6 |