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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Datagulf
Responsive Resident
Responsive Resident

Show all elements in dropdown despite filters in measure

Hello Community. I have a blocker on a task I am doing. So, I have a table with Internet connection clients. A single client could have one site or multiple sites. Each site is billed a different amount. The data is as below.

Client NameSites of ClientsBilled Amount($)
client AHead office1000
Client ANew York500
Client ANew Orleans2000
Client AVegas3500
Client ASeattle5000
Client AFlorida4500
Client BNew York13000
Client BSeattle2000
Client BFlorida1500
Client CWashington13700
Client CHead office3000
Client DHead office12000
Client EWashington8800
Client FFlorida11000
Client GSeattle7700
Client HNew York3300
Client HNew Orleans4000
Client HHead office3500
Client ISeattle12500

The task is to find the clients that are billed more than 10000$. WHich I have been able to do with the formulae below.

 

 

 

 

Top 10K accounts = 

SUMX(

FILTER(

GROUPBY(

'Sheet1',

'Sheet1'[Client ],

"_1", SUMX(CURRENTGROUP(),'Sheet1'[Billed Amount])

),

[_1] >= 10000

),

[_1]
)

 

 

 

 

The problem is the Matrix table only returns the sites that are above 10000, whereas the sites below 10000, also were included in the build-up of the amount to being greater than 10000. If you can help change the formula to account for the Companies with a total of 10000 change, I would be grateful. The Pbix is below. Thanks in advance. https://drive.google.com/file/d/1uRGQrGHWK8ZRX5ywCCangyflrMq3d-P8/view?usp=sharing 

2 ACCEPTED SOLUTIONS
DataInsights
Super User
Super User

@Datagulf,

 

Try these measures:

 

Sum Billed Amount = SUM (Table1[Billed Amount($)] )

 

Top 10K Accounts = 
VAR vTable =
    ADDCOLUMNS ( VALUES ( Table1[Client Name] ), "@Amount", [Sum Billed Amount] )
VAR vTable10K =
    FILTER ( vTable, [@Amount] >= 10000 )
VAR vResult =
    SUMX ( vTable10K, [@Amount] )
RETURN
    vResult

 

DataInsights_0-1636389817958.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Hello, @DataInsights . Much appreciated this answer. However, I cannot see the lower values of less than 10K when drilling down to the sites. However, I went for another workaround. That is to create full-page tooltips and show the items without leaving out the ones that are below 10K. 

thanks.

View solution in original post

2 REPLIES 2
DataInsights
Super User
Super User

@Datagulf,

 

Try these measures:

 

Sum Billed Amount = SUM (Table1[Billed Amount($)] )

 

Top 10K Accounts = 
VAR vTable =
    ADDCOLUMNS ( VALUES ( Table1[Client Name] ), "@Amount", [Sum Billed Amount] )
VAR vTable10K =
    FILTER ( vTable, [@Amount] >= 10000 )
VAR vResult =
    SUMX ( vTable10K, [@Amount] )
RETURN
    vResult

 

DataInsights_0-1636389817958.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hello, @DataInsights . Much appreciated this answer. However, I cannot see the lower values of less than 10K when drilling down to the sites. However, I went for another workaround. That is to create full-page tooltips and show the items without leaving out the ones that are below 10K. 

thanks.

Helpful resources

Announcements
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.