Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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])
)
)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
46 | |
28 | |
23 | |
12 | |
8 |
User | Count |
---|---|
76 | |
51 | |
45 | |
16 | |
12 |