Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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$]
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
96 | |
93 | |
82 | |
70 | |
64 |
User | Count |
---|---|
115 | |
105 | |
95 | |
79 | |
72 |