cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kw77777
Regular Visitor

Create a measure that does not respond to visual filters

Hello, 

 

I am trying to create a line and clustered column chart where the line data does not respond to the filters i have for the columns. In this chart, the columns display total projected $ impact for different business divisions with specific filters. I want the line to show total number of financial events for each column without the specific filters on the bar chart effecting the number. Right not the number is showing a total of 53 events when it should be 250. 

 

I have tried creating a measure that would count this value:

Events = CALCULATE(COUNT('Risk Event Global'[Event ID]),
ALL('Risk Event Global'[Event ID]),
FILTER('Risk Event Global', 'Risk Event Global'[Event Status] in {"Open","Draft"}))
 
I have seen in these forums that ALL() has worked to solve this issue for others, but I am still getting the same result. 
 
Here is the chart:
kw77777_0-1670608756168.png

 

Here are the filters on the visual:

kw77777_1-1670608795604.png

 

Here is the table:

kw77777_2-1670608863707.png

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@kw77777 , Try like

 

Events = CALCULATE(COUNT('Risk Event Global'[Event ID]),

FILTER(ALL('Risk Event Global'),, 'Risk Event Global'[Event Status] in {"Open","Draft"}))

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @kw77777,

Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
amitchandak
Super User
Super User

@kw77777 , Try like

 

Events = CALCULATE(COUNT('Risk Event Global'[Event ID]),

FILTER(ALL('Risk Event Global'),, 'Risk Event Global'[Event Status] in {"Open","Draft"}))

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors
Top Kudoed Authors