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 September 15. Request your voucher.

Reply
javadjafari
Frequent Visitor

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.


 1.PNG   2.PNG

7 REPLIES 7
lbendlin
Super User
Super User

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

lbendlin
Super User
Super User

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.

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.
Capture.PNG

lbendlin
Super User
Super User

Does your data model include Dates/Calendar tables?

  • Thanks Ibendlin. Yes it has. 

Would you mind showing the data model?

This is the model lbendlin. Patients and Data tables are connected through the Patient Numbers. The other two through Date and Submission Date. Thanks.
Capture.PNG

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.