cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Deermeat
Resolver I
Resolver I

How to separate out slicers for calculated averages in heatmap?

Hello,

I'm trying to seperate out my slicers for the calculated averages. Currently, I have a set of data with different categories.

Untitled.png

I created a calculated column to calculate the % change compared to last month. Then I created a new table to calculate the % change in score of each possible category/region/industry/currency/etc. at each time. I have ended up with a table that look like this:

Untitled.png

This has allowed me to create heatmap with matrices that are able to be filtered, but I am unable to seperate the slicer for each different category. Is it possible to seperate them out? Ideally if possible, I want to be able to make it look like the above issuer slices. With each different categories in their own slicer and clicking on them will add them to the heatmap.

Untitled.png

 

Sample Data: https://drive.google.com/file/d/1AveRov7QXEwJEMDk9uUuiScBOsL8N_9p/view?usp=sharing

 

Thank you.

3 REPLIES 3
v-kkf-msft
Community Support
Community Support

Hi @Deermeat ,

 

Please use this measure as the visual-level filter. Check if its output meets your expectations.

 

IsFiltered = 
VAR selectTab =
    UNION (
        VALUES ( Data[Region ID] ),
        VALUES ( Data[CountryID] ),
        VALUES ( Data[IndustryID] ),
        VALUES ( Data[Sub-IndustryID] ),
        VALUES ( Data[RatingID] ),
        VALUES ( Data[CurrencyID] ),
        VALUES ( Data[Category 1] ),
        VALUES ( Data[Category 2] ),
        VALUES ( Data[Category 3] ),
        VALUES ( Data[IssuerID] )
    )
RETURN
    COUNTROWS ( INTERSECT ( VALUES ( Averages[Categories] ), selectTab ) )

vkkfmsft_0-1653271865987.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-kkf-msft,

Thank you very much for your help! This is indeed one step closer to what I wanted. However, the only problem now is that when nothing is chosen, all of the lines are showing:

If I click only Region 1, all the other categories will show up because nothing is chosen there. Is it possible to make it so that only stuff that are chosen will show up?

Untitled.png

Thank you!

Hi @v-kkf-msft,

Apologies for the double posting. The end goal I'm trying to reach is that the user is able to choose the type of lines that they want to have include into the matrix. If they choose Region 1, Industry 4, Rating 10, and Currency 10 in the slicers, these 4 rows will appear on the matrix. However, this is not what is happening. After editing the interactions to not interfere with each other. I notice that if you choose a combination of categories where there is no IssuerID for that combination, the matrix fail to show the results. Is it possible to overcome this issue?

Untitled.png

 

Thank you!

Here's an updated link to the file: https://drive.google.com/file/d/10uCTKEj_ojsbSW8is4TchJ09s9prOl6C/view?usp=sharing

Helpful resources

Announcements
August 2022 update 768x460.jpg

Check it Out!

Click here to learn more about the August 2022 updates!

August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors