Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi, I'm trying to find the unique values of a column in a table using DISTINCT function.
However when I try to visualize the result in a Table, the following error is thrown:
'Calculation error in measure. A table of multiple values was supplied where a single value was expected'.
I have a list of machine names. And would like to count how many there are of each name. Each machine name also has a machine ID which is unique. So I'd like to calculate the amount of Machine IDs for each Machine Name. Thus I tried the DISTINCT function.
Ideas? Perhaps there could be multiple solutions to the same problem.
Solved! Go to Solution.
Hi @1up ,
If the formulas that amitchandak and az38 suggested work, please accept them answers as solutions.
If you are still confused about the error, please share the sample data, the formula that you tried and your expected result. Then we will understand clearly.
Thank you, DISTINCTCOUNT did the trick!
Any ideas why DISTINCT-function is returning an error? Perhaps it needs to be used with another argument?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 63 | |
| 55 | |
| 42 | |
| 41 | |
| 23 |
| User | Count |
|---|---|
| 165 | |
| 132 | |
| 118 | |
| 79 | |
| 53 |