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 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is 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.
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 31 | |
| 28 | |
| 24 | |
| 23 | |
| 19 |
| User | Count |
|---|---|
| 44 | |
| 32 | |
| 18 | |
| 17 | |
| 17 |