Date Difference of current record and its relative record using MDX

  • Dear All,

    I have a some rows where it points to another row in same table based on RelativeId column value. I need to find the difference of these two records date values using MDX.

    for ex.  sample table structure with some values

    ID - HasRelative - Date - RelativeId

    1 - False - 2023-01-01 - NULL

    2 - True - 2023-08-01 - 1

    Here record 2 has a relative record 1. The output should be difference of Date values between 2 records which are mapped with RelativeId.

    Thank you very much

    • This topic was modified 9 months, 1 week ago by  LearnTSQL.
    • This topic was modified 9 months, 1 week ago by  LearnTSQL.
  • This was removed by the editor as SPAM

  • Thanks for posting your issue and hopefully someone will answer soon.

    This is an automated bump to increase visibility of your question.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply