Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
SusuYes
Helper III
Helper III

Applying SQL logic to MS PowerBI

Hello all, 

 

I'm not very expreinced with SQL but I am connected to a database where I can apply a certain logic to get a unique view. I am trying to recreate the same view in PowerBI so that I am able to report on this data. 

 

The SQL logic is as follows: 

SELECT * FROM TABLE_NAME WHERE COLOUMN_NAME IN ('1',2'); 

 

I am trying to get the same view in PowerBI but I am not sure how to apply that at the source query. 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @SusuYes 

After you have your basic query loaded in the power Query editor, click on the column header drop down and select only the values you need.

pranit828_0-1639533696350.png

 

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @SusuYes 

After you have your basic query loaded in the power Query editor, click on the column header drop down and select only the values you need.

pranit828_0-1639533696350.png

 

 

thank you, I just realised that it is just a filter haha

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.