Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Calculated Table

Hi, I need help creating a calculated table. Here is the scenario -   The requirement is to create a calculated table based the columns from 2 tables based on selection for the latest date from the...
  • v-gizhi-msft's avatar
    v-gizhi-msft
    6 years ago

    Hi,

     

    According to your further description, i create a seperate date slicer table:

    Then try this measure:

    Measure = IF(MAXX(ALL('Table 1'),'Table 1'[date])<>SELECTEDVALUE('Date Slicer'[Date]),IF(MAX('Table 1'[date])=MAX('Table 2'[Date]),1,0),IF(MAX('Table 1'[date])=SELECTEDVALUE('Date Slicer'[Date]),1,0))

    Apply this measure to the table1, when you choose the max date in table1, it shows the max date's data:

    When you choose other date which is not equal to the max date in table1, it shows the data with table1[date]=table2[date]:

    Here is my test pbix file:

    pbix 

    Expect your reply!

     

    Best Regards,

    Giotto Zhi