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
SteveIOW
Helper II
Helper II

unfilter a single column in a measure

Dear all,

 

I am trying to create a measure returning a value based on data form a specific tab in a workbook called "Activity/Waiting Lists", whilst actually being in a dataset that references a different tab, "Estates". i.e. I am trying to drop all the filters applied to the page whilst applying the filters applied to a different page.

 

The measure below does this quite successfully.

 

BUT I now need to put this on a chart which uses Providers[NewRegionName] on the x axis.

Of course this doesn't work because the filters are removed! Nor can I use ALLEXCEPT becasue the table the data comes form is different - i.e. Mainfacts and Providers.

 

Can anyone point me in the right direction please?

 

best

 

Steve

 

ActivityValue = CALCULATE(SUM(MainFacts[Value]), ALL(MainFacts), MainFacts[Tab] = "Activity/Waiting Lists", MainFacts[WLorAct] = "Activity",

Providers[NewRegionName] = "London"||
Providers[NewRegionName] = "North West"||
Providers[NewRegionName] = "South East"||
Providers[NewRegionName] = "Midlands"||
Providers[NewRegionName] = "South West"||
Providers[NewRegionName] = "East of England"||
Providers[NewRegionName] = "North East and Yorkshire",

MainFacts[Attribute] = "Planned tests/procedures completed"||
MainFacts[Attribute] = "Remaining Waiting list tests/procedures completed"||
MainFacts[Attribute] = "Unscheduled/urgent tests/procedures completed",

MainFacts[SubCode] = "1.01"||
MainFacts[SubCode] = "1.02"||
MainFacts[SubCode] = "1.03"||
MainFacts[SubCode] = "1.04"||
MainFacts[SubCode] = "1.05"||
MainFacts[SubCode] = "1.06"||
MainFacts[SubCode] = "1.07"||
MainFacts[SubCode] = "1.08"||
MainFacts[SubCode] = "1.09"||
MainFacts[SubCode] = "1.10"||
MainFacts[SubCode] = "1.11"||
MainFacts[SubCode] = "1.12"||
MainFacts[SubCode] = "1.13"||
MainFacts[SubCode] = "1.14"||
MainFacts[SubCode] = "1.15"||
MainFacts[SubCode] = "1.16"

)

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@SteveIOW . Try like below, Also try to use In

 

example

Providers[NewRegionName] in{ "London", "North West"}

 

Try like

 

ActivityValue = CALCULATE(SUM(MainFacts[Value]), Filter(ALL(MainFacts), MainFacts[Tab] = "Activity/Waiting Lists", MainFacts[WLorAct] = "Activity"
&& (MainFacts[Attribute] = "Planned tests/procedures completed"||
MainFacts[Attribute] = "Remaining Waiting list tests/procedures completed"||
MainFacts[Attribute] = "Unscheduled/urgent tests/procedures completed")
&& (MainFacts[SubCode] = "1.01"||
MainFacts[SubCode] = "1.02"||
MainFacts[SubCode] = "1.03"||
MainFacts[SubCode] = "1.04"||
MainFacts[SubCode] = "1.05"||
MainFacts[SubCode] = "1.06"||
MainFacts[SubCode] = "1.07"||
MainFacts[SubCode] = "1.08"||
MainFacts[SubCode] = "1.09"||
MainFacts[SubCode] = "1.10"||
MainFacts[SubCode] = "1.11"||
MainFacts[SubCode] = "1.12"||
MainFacts[SubCode] = "1.13"||
MainFacts[SubCode] = "1.14"||
MainFacts[SubCode] = "1.15"||
MainFacts[SubCode] = "1.16") ),
Filter(Providers
Providers[NewRegionName] = "London"||
Providers[NewRegionName] = "North West"||
Providers[NewRegionName] = "South East"||
Providers[NewRegionName] = "Midlands"||
Providers[NewRegionName] = "South West"||
Providers[NewRegionName] = "East of England"||
Providers[NewRegionName] = "North East and Yorkshire"))


)

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@SteveIOW . Try like below, Also try to use In

 

example

Providers[NewRegionName] in{ "London", "North West"}

 

Try like

 

ActivityValue = CALCULATE(SUM(MainFacts[Value]), Filter(ALL(MainFacts), MainFacts[Tab] = "Activity/Waiting Lists", MainFacts[WLorAct] = "Activity"
&& (MainFacts[Attribute] = "Planned tests/procedures completed"||
MainFacts[Attribute] = "Remaining Waiting list tests/procedures completed"||
MainFacts[Attribute] = "Unscheduled/urgent tests/procedures completed")
&& (MainFacts[SubCode] = "1.01"||
MainFacts[SubCode] = "1.02"||
MainFacts[SubCode] = "1.03"||
MainFacts[SubCode] = "1.04"||
MainFacts[SubCode] = "1.05"||
MainFacts[SubCode] = "1.06"||
MainFacts[SubCode] = "1.07"||
MainFacts[SubCode] = "1.08"||
MainFacts[SubCode] = "1.09"||
MainFacts[SubCode] = "1.10"||
MainFacts[SubCode] = "1.11"||
MainFacts[SubCode] = "1.12"||
MainFacts[SubCode] = "1.13"||
MainFacts[SubCode] = "1.14"||
MainFacts[SubCode] = "1.15"||
MainFacts[SubCode] = "1.16") ),
Filter(Providers
Providers[NewRegionName] = "London"||
Providers[NewRegionName] = "North West"||
Providers[NewRegionName] = "South East"||
Providers[NewRegionName] = "Midlands"||
Providers[NewRegionName] = "South West"||
Providers[NewRegionName] = "East of England"||
Providers[NewRegionName] = "North East and Yorkshire"))


)

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Amazing - thank you. And thanks for the tips.

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.