Forum Discussion

javadjafari's avatar
javadjafari
Frequent Visitor
5 years ago

Filter numbers between parameters rather than actual dates

Hi Everyone,
I have faced an issue and was wondering if you can please help me with.

Assume I have couple of patients (according to following table) with 2 visits. Also they take medications in different times where they submit a code for each. Now, I need to filter the number of submissions per each patient in different time ranges (e.g between D1 and D2 or between D1 and Today and so on) instead of importing associated dates to those parameters (D1, D2) manually for each patient using the slicer.
Thanks.


    

7 Replies

  • I don't think your Dates tabe is a proper calendar table without gaps. It also does not appear to be marked as a Dates table.  Correct that and then link from Dates to Data as a 1:M relationship with single filter direction.

    • javadjafari's avatar
      javadjafari
      Frequent Visitor

      Thanks for your help, Do you think it`s ok now?
      And do you think the questions I had technically possible in Power Bi? Thanks.

  • Yes, this looks good.  Now create your desired visual, and then adjust the measures accordingly.