Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
I added a calculated table to my data with values for the previous year, and then tried to add a measure using Switch.
This is what I wrote.
I get the following error message:
A single value for column 'Count of Leads PY' in table 'Leads Amount PY' 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.
The thing is I took the exact same steps for the current year, it works without a hitch and there is no aggregation there either. Is there another way to interpret this error message? What else can I check to make sure it works as intended?
Solved! Go to Solution.
Ok, I got it. The problem was indeed that it was a measure @amitchandak . Beginner mistake 😑
For anyone who reads this, this should be made over a calculated column based on the calculated table (instead of with a measure).
Ok, I got it. The problem was indeed that it was a measure @amitchandak . Beginner mistake 😑
For anyone who reads this, this should be made over a calculated column based on the calculated table (instead of with a measure).
@amitchandak to provide an example, this is the calculated table what I did for all the data (no filter on the year).
Calculated table:
I then inserted this measure:
I am now trying to reproduce this with a change to the first step (filter for the previous year). But for some reason that I don't understand, I get this error message about an aggregation issue 😞
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
11 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
12 | |
11 | |
11 | |
11 |