This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
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?
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 41 | |
| 40 | |
| 36 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 75 | |
| 61 | |
| 34 | |
| 30 | |
| 25 |