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

Filtering using counting in a Radar

Hey,

I am trying to make a report including a Radar visual using TableRadar and I would like to display from another table TableProducts a list of rows that match the selection so that user can see details.

 

TableRadar

TypeCount
X2
Y2
Z1

Where Count is defined as below

 

Count = CALCULATE(COUNT(TableProducts[Product]);FILTER(TableProducts;SEARCH([Type];TableProducts[Type list];;0)))

 

 

 

TableProducts

ProductType list
AX, Y
BX
CY
DZ

 

As 'Type list' is made of a list of tags, I cannot create directly a relationship between the two tables so that a selection done in Radar can directly display list of rows. Any idea?

 

One.PNG

 

two.PNG

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: Filtering using counting in a Radar

 

1. Eliminate the relationship

2. Create any of these two measures below ( the first one show all rows when nothing is selected in the radar, the second one shows nothing in that case)

3. Use the measure to filter the visual with TableProducts (show when result of the measure is 1)

 

ShowMeasure =
IF(
    SEARCH(
        SELECTEDVALUE( TableRadar[Type] );
        SELECTEDVALUE( TableProducts[Type list] );
        1;
        0
    ) > 0;
    1;
    0
)

 

ShowMeasure2 =
IF (
    COUNT ( TableRadar[Type] ) = COUNTROWS ( ALL ( TableRadar[Type] ) );
    0;
    IF (
        SEARCH (
            SELECTEDVALUE ( TableRadar[Type] );
            SELECTEDVALUE ( TableProducts[Type list] );
            1;
            0
        ) > 0;
        1;
        0
    )
)

Please mark the question solved when done and consider giving kudos if posts are helpful.

 Cheers 

SU18_powerbi_badge

 

View solution in original post

4 REPLIES 4
Highlighted
Helper I
Helper I

Re: Filtering using counting in a Radar

Should I create one column per possible Type and then create several relationships?

Highlighted
Super User III
Super User III

Re: Filtering using counting in a Radar

Hi @stchln 

Can you explain a bit more what exactly you would want to have as final result? It is not quite clear

Cheers

 

Highlighted
Helper I
Helper I

Re: Filtering using counting in a Radar

When I click on the point x in the radar visual, I would like to see rows A and B displayed in TableProducts.

 

Highlighted
Super User III
Super User III

Re: Filtering using counting in a Radar

 

1. Eliminate the relationship

2. Create any of these two measures below ( the first one show all rows when nothing is selected in the radar, the second one shows nothing in that case)

3. Use the measure to filter the visual with TableProducts (show when result of the measure is 1)

 

ShowMeasure =
IF(
    SEARCH(
        SELECTEDVALUE( TableRadar[Type] );
        SELECTEDVALUE( TableProducts[Type list] );
        1;
        0
    ) > 0;
    1;
    0
)

 

ShowMeasure2 =
IF (
    COUNT ( TableRadar[Type] ) = COUNTROWS ( ALL ( TableRadar[Type] ) );
    0;
    IF (
        SEARCH (
            SELECTEDVALUE ( TableRadar[Type] );
            SELECTEDVALUE ( TableProducts[Type list] );
            1;
            0
        ) > 0;
        1;
        0
    )
)

Please mark the question solved when done and consider giving kudos if posts are helpful.

 Cheers 

SU18_powerbi_badge

 

View solution in original post

Helpful resources

Announcements
Meet the 2020 Season 2 Power BI Super Users!

Meet the 2020 Season 2 Power BI Super Users!

Find out who's part of the program this season, and welcome the new Super Users.

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

July 2020 Community Highlights

July 2020 Community Highlights

Learn about the exciting things that happened in July.

Featured Data Story of The Month

Featured Data Story of The Month

All Data Stories Gallery contributions are reviewed for each month. We select a contribution and feature the community member the following month.

Power BI Dev Camp - Developing with .NET Core

Power BI Dev Camp - Developing with .NET Core

Learn how to develop custom web applications for Power BI using .NET Core 3.1 and .NET 5.

Top Solution Authors
Top Kudoed Authors