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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
iris__bi
Frequent Visitor

Implicit filter penetration of 2 Dates in fact table - Visual Interaction

G'day,

Hope someone can help me out on this.
I'm currently dealing with the 2 crucial dates on my main table - project created and closed date.

 

Using the following DAX, I can plot the open projects of each month assuming the projects are not being cancelled/terminated (going out of the system).

 

Open Projects =
VAR month_start = SELECTEDVALUE('Calendar'[MonthStart])
VAR month_end = EOMONTH(month_start, 0)
RETURN
CALCULATE(
    COUNTROWS('All Projects Export'),
    FILTER(
        ALLEXCEPT('All Projects Export', 'All Projects Export'[Archived], 'All Projects Export'[1c. Portfolio], 'All Projects Export'[Status],'All Projects Export'[Groups], 'All Projects Export'[1a. Project Type]),
        'All Projects Export'[Created Date] <= month_end &&
        (
            ISBLANK('All Projects Export'[2ze. Project Closure Date (actual)]) || 'All Projects Export'[2ze. Project Closure Date (actual)] >= month_start
        )
    )
)

Screenshot 2025-05-28 114100.png

 

However, after applying this measure to the line chart, it doesn't allow the click-on lookup to my other table visual to show all the open projects in the specific month. The reason being is that the calendar table in use has active relationship with Created Date, and thereby the filter penetrate through the visual and lock in the month.

 

Eg: when clicking on the "May" of the line chart, only the created dates fall into May will be shown in the detailed table 

1 ACCEPTED SOLUTION
v-pbandela-msft
Community Support
Community Support

Hi @iris__bi,

Thank you for reaching out in Microsoft Community Forum.

Please follow below for the required output;

1. Create a disconnected calendar table

Calendar_Disconnected =
ADDCOLUMNS(
CALENDAR(DATE(2023, 1, 1), DATE(2026, 12, 31)),
"MonthStart", DATE(YEAR([Date]), MONTH([Date]), 1)
)

2.Modify the Open Projects

measureOpen Projects (Disconnected) =
VAR month_start = SELECTEDVALUE('Calendar_Disconnected'[MonthStart])
VAR month_end = EOMONTH(month_start, 0)
RETURN
CALCULATE(
COUNTROWS('All Projects Export'),
FILTER(
ALL('All Projects Export'),
'All Projects Export'[Created Date] <= month_end &&
(
ISBLANK('All Projects Export'[2ze. Project Closure Date (actual)]) ||
'All Projects Export'[2ze. Project Closure Date (actual)] >= month_start
)
)
)

3.Create a filter flag for the table visual

Is Open In Selected Month =
VAR month_start = SELECTEDVALUE('Calendar_Disconnected'[MonthStart])
VAR month_end = EOMONTH(month_start, 0)
RETURN
IF (
'All Projects Export'[Created Date] <= month_end &&
(
ISBLANK('All Projects Export'[2ze. Project Closure Date (actual)]) ||
'All Projects Export'[2ze. Project Closure Date (actual)] >= month_start
),
1,
0
)

Please continue using Microsoft Community Forum.

If this post helps in resolve your issue, kindly consider marking it as "Accept as Solution" and give it a 'Kudos' to help others find it more easily.

Regards,
Pavan.

 

View solution in original post

2 REPLIES 2
v-pbandela-msft
Community Support
Community Support

Hi @iris__bi,

Thank you for reaching out in Microsoft Community Forum.

Please follow below for the required output;

1. Create a disconnected calendar table

Calendar_Disconnected =
ADDCOLUMNS(
CALENDAR(DATE(2023, 1, 1), DATE(2026, 12, 31)),
"MonthStart", DATE(YEAR([Date]), MONTH([Date]), 1)
)

2.Modify the Open Projects

measureOpen Projects (Disconnected) =
VAR month_start = SELECTEDVALUE('Calendar_Disconnected'[MonthStart])
VAR month_end = EOMONTH(month_start, 0)
RETURN
CALCULATE(
COUNTROWS('All Projects Export'),
FILTER(
ALL('All Projects Export'),
'All Projects Export'[Created Date] <= month_end &&
(
ISBLANK('All Projects Export'[2ze. Project Closure Date (actual)]) ||
'All Projects Export'[2ze. Project Closure Date (actual)] >= month_start
)
)
)

3.Create a filter flag for the table visual

Is Open In Selected Month =
VAR month_start = SELECTEDVALUE('Calendar_Disconnected'[MonthStart])
VAR month_end = EOMONTH(month_start, 0)
RETURN
IF (
'All Projects Export'[Created Date] <= month_end &&
(
ISBLANK('All Projects Export'[2ze. Project Closure Date (actual)]) ||
'All Projects Export'[2ze. Project Closure Date (actual)] >= month_start
),
1,
0
)

Please continue using Microsoft Community Forum.

If this post helps in resolve your issue, kindly consider marking it as "Accept as Solution" and give it a 'Kudos' to help others find it more easily.

Regards,
Pavan.

 

Ashish_Excel
Resolver V
Resolver V

Hi,

Share the download link of the PBI file.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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