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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
aktripathi2506
Helper IV
Helper IV

Measure should be untouched by filter

HI All,

 

Here I am asking something entirely opposite.

 

I want to create a measure which should be uneffected by any page level filter or visual filter.

And I should have option to hardcore the filter for only this measure.

 

 

For example, I create a measure which calculate the sum of students. 

Measure 1 = SUM(table[Strength])

 

DepartmentMeasure 1
Physics100
Chemistry200
Math150
English300

 

In power Vi visual: I got a table like this

 

DepartmentStrength
Physics12
Chemistry18
Math20
English14


To get this table I applied the filter on this table. Like class = 9, age is only between 15 to 20.

 

Now I want to get another column which should have the total strength regardless of these condition i.e. class = 9, age is only between 15 to 20. But it should be senstive to slicer because from there I am getting year.

 

Desired output will be something like this:

 

DepartmentStrengthMeasure 1
Physics12100
Chemistry18200
Math20150
English14300

 

So I can calculate the percentage 12/100, 18/200, 20/150...

 

What i am getting now is:

 

DepartmentStrengthMeasure 1
Physics1212
Chemistry1818
Math2020
English1414

 

Hope it is clear.

Please advise, Thanks.

1 ACCEPTED SOLUTION
aktripathi2506
Helper IV
Helper IV

I got the solution by using the function ALLEXCEPT.

Just if anyone has the similar problem.

View solution in original post

1 REPLY 1
aktripathi2506
Helper IV
Helper IV

I got the solution by using the function ALLEXCEPT.

Just if anyone has the similar problem.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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