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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors