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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.