cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Wiene24 Helper II
Helper II

Treemap with two filters

Hi,

I have created a treemap wich shows the slowest paying company. 

Here I have selecter the bottom 10 companies based on their average.

But now I want to add that I only want to see it if the company has bought goods for a certain amount in total.

Now it's looking at all companies and the top-10 is all based on companies that have only put in one order.

 

How can I add this second part?

1 ACCEPTED SOLUTION

Accepted Solutions
Wiene24 Helper II
Helper II

Re: Treemap with two filters

I made a new colomn in the clients table where it shows me the total revenue for each client.

This I can use in a slicer.

 

Total revenue = CALCULATE(SUM(DEBFACTUUR[FACTBEDRAG]);FILTER(DEBFACTUUR;DEBFACTUUR[CDDEBITEUR] = REL_DEB[CDDEBITEUR]))
 
Revenue 2019 = CALCULATE(SUM(DEBFACTUUR[FACTBEDRAG]);FILTER(DEBFACTUUR;DEBFACTUUR[CDDEBITEUR] = REL_DEB[CDDEBITEUR]);FILTER(DEBFACTUUR;DEBFACTUUR[BOEKJAAR] = 2019))

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Re: Treemap with two filters

Simply add a filter to the visual explaining it should only show the companys with 1 order

Wiene24 Helper II
Helper II

Re: Treemap with two filters

But I want it based on the revenue.

 

I have a measure: Total revenue = CALCULATE(SUM(DEBFACTUUR[FACTBEDRAG]))

In a table etc this works, because it devides it over the costumors. If I add this to the Treemap it will only look at the total of a single invoice.

I can't use calculated colomn because I use year filters and the visual should change with it.

I can't use a slicer with the measure either, it just doesn't allow it.

Wiene24 Helper II
Helper II

Re: Treemap with two filters

I made a new colomn in the clients table where it shows me the total revenue for each client.

This I can use in a slicer.

 

Total revenue = CALCULATE(SUM(DEBFACTUUR[FACTBEDRAG]);FILTER(DEBFACTUUR;DEBFACTUUR[CDDEBITEUR] = REL_DEB[CDDEBITEUR]))
 
Revenue 2019 = CALCULATE(SUM(DEBFACTUUR[FACTBEDRAG]);FILTER(DEBFACTUUR;DEBFACTUUR[CDDEBITEUR] = REL_DEB[CDDEBITEUR]);FILTER(DEBFACTUUR;DEBFACTUUR[BOEKJAAR] = 2019))

View solution in original post

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Top Solution Authors
Top Kudoed Authors