Forum Discussion

MrPencil's avatar
MrPencil
Regular Visitor
9 years ago
Solved

How to calculate with two tables in Direct Query Mode?

Hello, I create the reports in Direct Query mode. I have 2 tables. One with header data, the other with position data. Table 1 shows the currency with the conversion rate. Table 2 shows the individu...
  • v-huizhn-msft's avatar
    9 years ago

    Hi MrPencil,

    Please click File -> Options and then Settings -> Options -> DirectQuery, then selecting the option "Allow unrestricted measures in DirectQuery mode". When that option is selected, any DAX expression that is valid for a measure can be used. You can create calculated column and measures.

     

    Create relationship between the tables, and get the the prices from another table using RELATED function by creating calculated columns or measures. Here is a thread which displays how to use related fucntion to lookup expected value, please review.

    If you have any issue, please let me know.

     

    Best Regards,
    Angelia