Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I am trying to create a new column 'count_of_listings', in the neighbourhood table by referring to the listing_id column in the listings_summary table where the neighbourhood property in both tables match
The above expression is throwing an error-
A single value for column 'neighbourhood' in table 'listings_summary' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.
My dataset -
Table- neighbourhoods
Neighbourhood_ID | Neighbourhood_Name
1|Westminister
2|Barnet
Table - listings_summary
listing_id| neighbourhood
1|Westminister
2|Barnet
3|Westminister
expected output
Table- neighbourhoods
Neighbourhood_ID | Neighbourhood_Name|number_of_listings
1|Westminister|2
2|Barnet|1
@Fowmy Thank you for the quick response. I'm getting this error-
A single value for column 'neighbourhood' in table 'listings_summary' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.
I tried with a different sample and see the same issue
Data set
Table-waitlist_by_neighbourhood
Area|waitlist_count
Westminister | 10
Barnet|30
Table-neighbourhoods_json
id|neighbourhood
1|Westminister
2|Barnet
Expected to add a column in the above table be infering the former table
id|neighbourhood|waitlist_count
1|Westminister|10
2|Barnet|30
number_of_listings =
VAR __n = listings_summary[neighbourhood]
RETURN
COUNTROWS (
FILTER (
neighbourhoods,
neighbourhoods[Neighbourhood_Name] = __n
)
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
User | Count |
---|---|
119 | |
78 | |
58 | |
52 | |
48 |
User | Count |
---|---|
171 | |
117 | |
61 | |
59 | |
53 |