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
Anonymous
Not applicable

Different Date filters for table/graph

Dear community,

 

I have the following data in my data-table (daily_trade_data) (values changed):

 

Trading DateTrading ContractSettlement Price
1/1/23Month50
1/1/23Week40
1/2/23Month53
1/2/23Week38

.... (until today)

 

In my report I have a table that shows the user just the todays values:

 

Trading DateTrading ContractSettlement Price
8/28/23Month73
8/28/23Week58

 

I would like to select a row (for example the month contract) and a graph should show me the price development for this contract since the start of the year. Currently the graph shows just the todays price - which makes sence - but I struggle with finding the correct dax formula that ignores the date filter in the table and uses an own one. 

 

Thanks for your help!

 

Luca

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hey Rico, thanks for your help! You gave me the idea to this solution: I created a second date table as you did and added it to the visual. So now I have the table and the visual with two different date-tables. When I now select a product in the table the visual gets filtert to this contract but the dates are not changed.

 

Luca

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

As far as I know, if the date column is related to the columns in your visual, your visual will be filtered.

Here I suggest you to create two unrelated dimtables to help your calculation.

My Data model:

vrzhoumsft_0-1693380207682.png

Measure:

Filter = 
IF (
    ISFILTERED ( DimContract[Trading Contract] ),
    IF (
        YEAR ( MAX ( 'Table'[Trading Date] ) ) = YEAR ( TODAY () )
            && MAX ( 'Table'[Trading Contract] )
                = SELECTEDVALUE ( DimContract[Trading Contract] ),
        1,
        0
    ),
    IF ( MAX ( 'Table'[Trading Date] ) = TODAY (), 1, 0 )
)

Add this measure into visual level filter and set it to show items when value = 1. Result is as below.

vrzhoumsft_1-1693380335338.png

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

Anonymous
Not applicable

Hey Rico, thanks for your help! You gave me the idea to this solution: I created a second date table as you did and added it to the visual. So now I have the table and the visual with two different date-tables. When I now select a product in the table the visual gets filtert to this contract but the dates are not changed.

 

Luca

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.