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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
robitobi
Regular Visitor

Select not filtered items for a measure

Dear Power BI Experts,

I have a situation where I want to get a measure for filtered values and another measure as reference which is consisting of all not filtered values.

Example:

In my data I have countries and a value. With a measure, I want to calculate a formula (as an example: the average) of the values.

robitobi_0-1677706442837.png

Now I have a request that we have a slicer where I could select some values (e.g. DE and ES) and I want to get the measure (no problem) and a second measure which shows the average for all other not filtered values.

 

Result should be like this:

Measure for filtered values (this is no problem):

robitobi_1-1677706593709.png

 

Measure2 for all other than the filtered values:

robitobi_2-1677706658029.png

 

Reason is that we want to use the Measure as actual value in a KPI visual and Measure2 as reference value in the same KPI visual.

 

Do you have any idea how Measure2 needs to be defined so that it can be used?

 

Thanks in advance for any hint.

 

Kind regards

Robitobi

1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

hi @robitobi 

try like:

measure1=
AVERAGE(TableName[value])
 
measure2=
CALCULATE(
    AVERAGE(TableName[value]),
    EXCEPT(
        ALL(TableName[Country]),
        VALUES(TableName[Country])
    )
)

View solution in original post

2 REPLIES 2
FreemanZ
Super User
Super User

hi @robitobi 

try like:

measure1=
AVERAGE(TableName[value])
 
measure2=
CALCULATE(
    AVERAGE(TableName[value]),
    EXCEPT(
        ALL(TableName[Country]),
        VALUES(TableName[Country])
    )
)

Thanks @FreemanZ , solution works!

Much appreciated!

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.