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
Anonymous
Not applicable

Modify DAX Formula for Direct Query???

Hi, I had to change my data load from import to direct query, and because of that a DAX calc column no longer works (see error screenshot). Is there an alternative formula that would work? There are 4 other calc columns that did not error out, only this one. Thanks!error.jpg

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Creating a measure in the table used for the visual works, ie.

TFB Rank = MIN(bi vwTFBN1PriorityList[[Overall Stack Rank]) 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Creating a measure in the table used for the visual works, ie.

TFB Rank = MIN(bi vwTFBN1PriorityList[[Overall Stack Rank]) 

lbendlin
Super User
Super User

Needs more details?  Are these fields related through the data model?

Anonymous
Not applicable

Ok, the reason for creating the DAX in the 1st place is because the PBI visual (a table) needs both PR Code and TFB Rank. But, TFB Rank field exists in a separate table than PR code (because they are in separate SQL tables). There is a many-many relationship between the 2 tables, but if the PR code doesn't exist in the TFB Rank table, then it won't show the project at all, whereas the PBI visual intention is to show ALL projects, even those that don't exist in the TFB rank table, which is why that DAX code was created. Does this make sense?

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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.