cancel
Showing results for
Did you mean:
Frequent Visitor

Percent of Revenue excluding one customer

Hey, Trying to create a measure that gets me customer percent of revenue excluding 1 customer.

The current measure works, but need help filtering the total revenue(minus 1 specific customer).

% Revenue =
VAR TotRev= CALCULATE(SUM('Table'[Revenue]),ALL('Table'[Customer List]))
Return
Divide(SUM('Table'[Revenue]),TotRev)

Need this to be done in measure so that this new measure excluding 1 customer equals 100%, Any help would be appreciated.

2 ACCEPTED SOLUTIONS
Resolver I
``````% Revenue =
VAR TotRev = CALCULATE ( SUM ('Table'[Revenue]),
FILTER ( ALL('Table'[Customer List]),
'Table'[Customer List] = 'Customer' )
)
Return
Divide(SUM('Table'[Revenue]),TotRev)``````
Frequent Visitor
``````% Revenue =
VAR TotRev = CALCULATE ( SUM ('Table'[Revenue]),
FILTER ( ALL('Table'[Customer List]),
'Table'[Customer List] <> 'Customer' )
)
Return
Divide(SUM('Table'[Revenue]),TotRev)``````

Thanks, this is what i was looking for, changed your "=" to  "<>"

3 REPLIES 3
Resolver I
``````% Revenue =
VAR TotRev = CALCULATE ( SUM ('Table'[Revenue]),
FILTER ( ALL('Table'[Customer List]),
'Table'[Customer List] = 'Customer' )
)
Return
Divide(SUM('Table'[Revenue]),TotRev)``````
Frequent Visitor
``````% Revenue =
VAR TotRev = CALCULATE ( SUM ('Table'[Revenue]),
FILTER ( ALL('Table'[Customer List]),
'Table'[Customer List] <> 'Customer' )
)
Return
Divide(SUM('Table'[Revenue]),TotRev)``````

Thanks, this is what i was looking for, changed your "=" to  "<>"

Super User

Hi,

Share some data to work with and also show the expected result.

Regards,
Ashish Mathur
http://www.ashishmathur.com

Announcements

The Power BI Community Show

Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through June10th!

Check it Out!

Watch Session 22 Ted's Dev Camp along with past sessions!