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
Krystian514W
Frequent Visitor

Relationship bypass problem

Hello!

 

I have a problem with showing a certain thing in the report, I will describe it with a maximally simplified example.

What I have:

first table with dates and names, second table for calendar - relationship between them by 'Date' columns.

Krystian514W_0-1726229645809.pngKrystian514W_1-1726229663758.pngKrystian514W_2-1726229682946.png

 

It's obvious that the slicer (by week) and table/card (with names from Table) will show only few names, like below.

Krystian514W_3-1726229759719.png

What can I do if I want to show two tables/cards below, one for filtered week and second one for next week? What I want to achieve:

Krystian514W_4-1726229867045.png

Is it possible without duplicating tables? (I can copy my Table and move Date by a week, create another relationship... but my actual report is really big and this is not an option).

I tried to use selectedvalue(Week) for ALL(Table) but it returns BLANK because (if I understand correctly) I remove filter context, I think that maybe I can create two calendars and synchronize two different slicers, but I don't know how to do that. Maybe you can help me with that 🙂

 

Simple report in that link: Simple report 

Thanks!

 

1 ACCEPTED SOLUTION
dk_dk
Super User
Super User

Hi @Krystian514W 

Create a new measure:

FilterCond =

VAR weekn = WEEKNUM(CALCULATE(MAX(TBL[Date]),REMOVEFILTERS('Calendar')))

VAR nextweek = MIN('Calendar'[Week])+1

RETURN
IF(weekn==nextweek,1,0)


and add a visual level filter to the next week visual, and set FilterCond = 1.
 
See my example:
dk_dk_0-1726233578512.png

 

 

 

dk_dk_1-1726233591524.pngdk_dk_2-1726233601397.png

 

 

Unfortunately it stops working if I FilterCond is not explicitly part of the visual, but you can work around that by formatting the color of it to match the background, so it is invisible.

Hope this helps! Let me know if you have any questions.

 




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

Proud to be a Super User!





View solution in original post

1 REPLY 1
dk_dk
Super User
Super User

Hi @Krystian514W 

Create a new measure:

FilterCond =

VAR weekn = WEEKNUM(CALCULATE(MAX(TBL[Date]),REMOVEFILTERS('Calendar')))

VAR nextweek = MIN('Calendar'[Week])+1

RETURN
IF(weekn==nextweek,1,0)


and add a visual level filter to the next week visual, and set FilterCond = 1.
 
See my example:
dk_dk_0-1726233578512.png

 

 

 

dk_dk_1-1726233591524.pngdk_dk_2-1726233601397.png

 

 

Unfortunately it stops working if I FilterCond is not explicitly part of the visual, but you can work around that by formatting the color of it to match the background, so it is invisible.

Hope this helps! Let me know if you have any questions.

 




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

Proud to be a Super User!





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