Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
I am using Power BI Report Builder. I am querying data being held in SSMS. My SQL syntax seems to be incorrect when I use DISTINCT:
SELECT
[Sheet1$].ID
,[Sheet1$].Player
,DISTINCT([Sheet1$].Nationality)
FROM
[Sheet1$]Any ideas as to why this is?
Solved! Go to Solution.
I realised that DISTINCT should come directly after the SELECT statement inorder for it to work.
SELECT
DISTINCT [Sheet1$].Nationality,
[Sheet1$].ID,
[Sheet1$].Player
FROM
[Sheet1$]
I realised that DISTINCT should come directly after the SELECT statement inorder for it to work.
SELECT
DISTINCT [Sheet1$].Nationality,
[Sheet1$].ID,
[Sheet1$].Player
FROM
[Sheet1$]
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 23 | |
| 22 | |
| 18 | |
| 17 | |
| 13 |
| User | Count |
|---|---|
| 63 | |
| 44 | |
| 42 | |
| 40 | |
| 40 |