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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
beewoop
Regular Visitor

need two visuals filtered by the same field, but the filtered columns must be different

so i have a table, table1, where i have a list of records. each record, desirebly, has START date and DUE date, hence table1 has columns called START and DUE respectively. i also have Calendar table, where i have Date column, that is related one way to table1[DUE]. 

 

i need to create two visuals, pretty much identical, that will display records. one must contain START, the other one DUE. 

 

both visuals must be filtered by Calendar[Date], and when i select date range, like month, both START and DUE must show records that are within this date range. for example, if i select May2024, i need visualA to show all records where START is May2024, and visualB to show all records where DUE is May2024.

 

as example, below is my table1

Record NumberSTARTDUE
INC12725 Mar 202417 May 2024
INC64631 May 20247 Jun 2024
INC7638 May 202423 Jul 2024
INC65415 Apr 20248 May 2024
INC0832 Feb 202419 May 2024

 

 

and when i use Calendar[Date] as filter, selecting May24,

 

 

visualA should then look like this

Record NumberSTART
INC64631 May 2024
INC7638 May 2024

 

 and visualB should look like this 

Record NumberDUE
INC12717 May 2024
INC6548 May 2024
INC08319 May 2024

 

unfortunately, because Calendar[Date] is related to DUE, i get visualA with records where DUE is within filtered range  like this

Record NumberSTART
INC12725 Mar 2024
INC65415 Apr 2024
INC0832 Feb 2024
1 ACCEPTED SOLUTION
barritown
Super User
Super User

Hi @beewoop,

 

One of the options is to create another, standalone calendar table for your slicer.

 

Then compose a couple of measures like that:

flagSTART = INT ( SELECTEDVALUE ( 'Table'[START] ) IN VALUES (DATES[Date] ) )

flagDUE = INT ( SELECTEDVALUE ( 'Table'[DUE] ) IN VALUES ( DATES[Date] ) )

 

Then use them for additional filtering in your visuals:

barritown_0-1720729923775.png

 

Please check the attached file with this approach realized.

 

Best Regards,

Alexander

My YouTube vlog in English

My YouTube vlog in Russian

 

View solution in original post

1 REPLY 1
barritown
Super User
Super User

Hi @beewoop,

 

One of the options is to create another, standalone calendar table for your slicer.

 

Then compose a couple of measures like that:

flagSTART = INT ( SELECTEDVALUE ( 'Table'[START] ) IN VALUES (DATES[Date] ) )

flagDUE = INT ( SELECTEDVALUE ( 'Table'[DUE] ) IN VALUES ( DATES[Date] ) )

 

Then use them for additional filtering in your visuals:

barritown_0-1720729923775.png

 

Please check the attached file with this approach realized.

 

Best Regards,

Alexander

My YouTube vlog in English

My YouTube vlog in Russian

 

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

May 2025 Monthly Update

Fabric Community Update - May 2025

Find out what's new and trending in the Fabric community.