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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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