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

Showing 2 tables filtered for different dates (quarters) based on same field

Hi,

 

I am trying to show 2 tables, one showing a given quarter data (10s of columns) as per a slicer selection, the other table (same data) the next quarter. Quarter is decided by a date field which is the same field in each case. The only way I could do it so far is to have 2 different slicers (and associate them independently to the different table) which is not ideal for the user to say the least...

 

I do use a calendar table connected to my dates to keep everything clean (I don't think it matters but just to be thorough).

 

I tried to think about measures, hidding a filter that would update based on the other one... but I cannot get to a solution.

 

Thanks,

David

2 REPLIES 2
v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please try like this:

This Quarter =
VAR Q =
    SELECTEDVALUE ( 'Date'[Qtr] )
RETURN
    CALCULATE (
        SUM ( 'Table'[Sales] ),
        FILTER ( 'Table', 'Table'[Qtr] = Q && 'Table'[Year] = MAX ( 'Date'[Year] ) )
    )

Next Quarter =
VAR Q =
    SELECTEDVALUE ( 'Date'[Qtr] )
RETURN
    CALCULATE (
        SUM ( 'Table'[Sales] ),
        FILTER ( 'Table', 'Table'[Qtr] = Q + 1 && 'Table'[Year] = MAX ( 'Date'[Year] ) )
    )

3.PNG

 

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thanks Xue Ding.

I don't think it will work though.

It's not about the sales value, it is about the individual deals. 

 

I need to be able to filter on Q2 with a slicer and have one table that shows only Q2 deals (bold) and another table that shows only Q3 deals (Italic). I do not want to sum up, I want to show individual lines... 

 

Sample raw data:

DealCustomer ID Customer nameClose dateQuarterProductquantityValue
123ABCCustomer16/20/20Q2Product A1

100

124ABDCustomer26/15/20Q2Product B2200
125ABECustomer38/12/20Q3Product C3300
126ABFCustomer49/13/20Q3Product D4400
127ABGCustomer511/9/20Q4Product E5500
128ABHCustomer610/3/20Q4Product F6600

 

I don't think a measure is my way out but happy to be proven wrong...

 

Thanks,

David

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors