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

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.

Reply
rejishravindran
Regular Visitor

Select columns displayed in visuals

Hi All,

 

Am new to Power BI. I have a report on a dataset where i tried display 7 columns from 3 tables and 2 measures from one of the  3 tables. When i drag and drop into the table, in query log i see it is selecting all the columns from the second table which i do the join. How do i select only columns i need from the tables and tables which i join?

 

Any help would be greatly appreciated.

 

rejishravindran_0-1713458756035.png

 

4 REPLIES 4
tharunkumarRTK
Solution Sage
Solution Sage

@rejishravindran 

I guess you are usinf direct query sorage mode. The SQL query which power bi sends to the source will depend on various factors and one such factor is the DAX query that you wrote and the relationships between the tables. I dont think it is possible for anyone to suggest you an idea without knowing the details.


If the post helps please give a thumbs up


If it solves your issue, please accept it as the solution to help the other members find it more quickly.


Tharun

 

Yes am using direct query storage mode. i have table A with more than 100 columns from which am selecting only 4 columns and 2 columns from another outer join table B. DAX query which power bi sends is trying to read all the columns from table A and all the columns from table B which is causing the visual exceeding million rows constraint.

@rejishravindran 

As I said its difficult for me suggest anything without knowing the dax you wrote for those measures. My suggestion is to do basic check first 

 

i.e. just pull the required columns both the tables and do not pull any measure and very how many columns the query is sanning and as per my knowledge it will only scan the columns you pulled.

 

after that enable horizontal fusion option in the preview features and then into visual include the measures and check again. Incase if the sql query is scanning the entire table then you need to otimize your dax. Hope this helps.

 


If the post helps please give a thumbs up


If it solves your issue, please accept it as the solution to help the other members find it more quickly.


Tharun

 

Hi - How can i reach out to you to show you the DAX query? SQL query is scanning the entire table but DAX query picks the only selected columns. we dont have horizontal fusion option. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.