Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
yug_ck
Regular Visitor

Passing date range as filter context in Drill through

Hi,

I'm trying to create a summary report with multi-row card which shows sum of a "value" column based on date range ("dt" column). I'm using measures to create sum of value based on date ranges, i.e. last 3 months, last 6 months, & past 1 year. Using that measures in a multi-row card & also categorizing by "plants" column. I also have another page which contains all the transaction data in a table. I'm able to drill through to transaction data table with "Plants" column filter.

 

How can I drill through to that transaction data table with date range as filter as well?

Note: I've only one data table.

 

Measures:

3Mo_sum = CALCULATE(SUM('public rawdata'[value]),DATESINPERIOD('public rawdata'[dt].[Date],MAX('public rawdata'[dt].[Date]),-3,MONTH))
6Mo_sum = CALCULATE(SUM('public rawdata'[value]),DATESINPERIOD('public rawdata'[dt].[Date],MAX('public rawdata'[dt].[Date]),-6,MONTH))
12Mo_sum = CALCULATE(SUM('public rawdata'[value]),DATESINPERIOD('public rawdata'[dt].[Date],MAX('public rawdata'[dt].[Date]),-12,MONTH))
I want to drill through this visual and pass "Plant" & Date range "dt" as filters to transcation data table. Ex, If I drill through 'Plant1'  '3 Months Sum',  I want to pass filter context as 'Plant1' for "Plants" column and Date Ranges in "dt" column for transaction data table. But only "Plants" column context is being passed. 

yug_ck_0-1718691077606.png

Data Model: There is only one table which contains Transaction data.

yug_ck_1-1718691208211.png


Thanks. 

2 REPLIES 2
MFelix
Super User
Super User

Hi @yug_ck ,

 

In this case you do not have the date context to act has a filter since what you have is the filter context on the formula, when you use the measure for the drill trouugh the dates are implied.

 

How do you have the drill trough setup?


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi @MFelix ,

Thanks for the reply. So, how do I pass date range as filter context since the range is defined as filter in measure's formula?
I've added all columns in drill-through in transaction data table page.  I did not add measures in the drill-through. 

yug_ck_0-1718771005369.png

Thanks.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors