Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello,
I have following issue:
Is in M a possibility to wirte a SQL statement with a "under-Select ", e.g.
Select Databasemouse.Animal from Databasemouse
where (Select (Databasemouse.legs + Databasemouse.Arm)>2 from Databasemouse)
Databasemouse:
Animal | Enemy | Legs | Arm |
Mouse | Snake | 2 | 2 |
Dog | Lion | 0 | 1 |
Solved! Go to Solution.
Hi, @Do5779 ;
I try it and you could create a sql ;
Select * from Databasemouse
where (Databasemouse.legs + Databasemouse.Arm)>2
The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Do5779 ;
I try it and you could create a sql ;
Select * from Databasemouse
where (Databasemouse.legs + Databasemouse.Arm)>2
The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Do5779 Do you want to convert a SQL code to M or just want to use SQL statement to load data into Power Query?
thank you for your respone. I only want to execute a SQL statement (advanced editor) with a "where select"-statement and I don't know why it isn't working.
@Do5779 If you are thinking about querying the table of an M code using SQL then that can't be done, if you are trying to query the Database using SQL then what is the error that you are getting?
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
13 | |
13 | |
11 | |
8 | |
8 |
User | Count |
---|---|
17 | |
10 | |
7 | |
7 | |
7 |