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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
SteveODea
Helper I
Helper I

Get Visualisation to Ignore a Filter

I have a Power BI Report which has a number of Filters, including one for 'AppCycleYear'. On one page. I am trying to create a Table visualisation which shows the CountOfApplications by AppCycleYear for all years, by ignoring the year filter.

 

This the DAX measure I have written for this, but the problem is that it returns the total CountOfApplications under a single year (i.e. 2023 since that is the year the report level filter is currently selected)

 

Count_Applications = CALCULATEDISTINCTCOUNT(applications[application_id]), All('Calendar'[AppCycleYear]))
 
And this is what it returns
 
Count_ApplicationsAppCycleYear
4,5002023
 
 What I want it to show is:
 
Count_ApplicationsAppCycleYear
1,2502023
1,1002022
2,1502021

 

How do I write the DAX function so that I get all Data by year, while the report level filter is selecting a single year? Do I need to write a measure for AppCycleYear too?

 

I guess my question is, is it possible to write DAX that ignores report level filters?

 

Thanks in advance

1 ACCEPTED SOLUTION
SteveODea
Helper I
Helper I

I managed to solve this myself by creating a second Calendar table and setting up an inactive relationship between my main table and and the second calendar table.

 

I then created a measure which relates my applications table to the new calendar table using USERELATIONSHIP and which ignores the original Calendar table using ALL as follows

 

Count_Applications = 
CALCULATE
DISTINCTCOUNT(applications[application_id])],
 USERELATIONSHIP(applications[CompletedDate],'Calendar2'[Date]),
                ALL('Calendar'[AppCycleYear])
    )
 
Bit clunky, but it works

View solution in original post

2 REPLIES 2
SteveODea
Helper I
Helper I

I managed to solve this myself by creating a second Calendar table and setting up an inactive relationship between my main table and and the second calendar table.

 

I then created a measure which relates my applications table to the new calendar table using USERELATIONSHIP and which ignores the original Calendar table using ALL as follows

 

Count_Applications = 
CALCULATE
DISTINCTCOUNT(applications[application_id])],
 USERELATIONSHIP(applications[CompletedDate],'Calendar2'[Date]),
                ALL('Calendar'[AppCycleYear])
    )
 
Bit clunky, but it works
Dangar332
Super User
Super User

Hi, @SteveODea 

 

you can use EDIT INTERACTION
click HERE   to know more about   EDIT INTERACTION

Dangar332_0-1698827419917.png

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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