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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
tb_mbisams_ap
Frequent Visitor

Show Like Records to Selection

I need a report where user will select a store and show the metrics for the other stores in that region in a separate visual.

 

Table:  Store_Alignment

Store #Region
1South
2South
3East
4West
5East
6South

 

Table:  Monthly_Sales

Store #MonthSales
1Feb$1,000
2Feb$1,200
3Feb$2,100
4Feb$1,700
5Feb$900
6Feb$800
1Mar$1,100
2Mar$900
3Mar$1,000
4Mar$800
5Mar$750
6Mar$1,200

 

The example store is #2 which is in the South.  The expected results should be the total sales for all other stores in the South like below:

 

Store #RegionSales
1South$2,100
6South$2,000
Total $4,100
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @tb_mbisams_ap ,

 

Consider creating a table with no joins.

vcgaomsft_0-1686548815915.png

 

then please create a new measure:

Measure = 
VAR __store =
    SELECTEDVALUE ( 'Table'[Store #] )
VAR __region =
    SELECTEDVALUE ( 'Table'[Region] )
VAR __table =
    CALCULATETABLE(
        VALUES ( 'Table'[Store #] ),
        FILTER (
            ALL ( 'Table' ),
            'Table'[Region] = __region
                && 'Table'[Store #] <> __store
        )
    )
VAR __filter =
    IF ( MAX ( 'Monthly_Sales'[Store #] ) IN __table, 1 )
RETURN
    __filter

use the measure as the table visual's filter:

vcgaomsft_1-1686548935360.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @tb_mbisams_ap ,

 

Consider creating a table with no joins.

vcgaomsft_0-1686548815915.png

 

then please create a new measure:

Measure = 
VAR __store =
    SELECTEDVALUE ( 'Table'[Store #] )
VAR __region =
    SELECTEDVALUE ( 'Table'[Region] )
VAR __table =
    CALCULATETABLE(
        VALUES ( 'Table'[Store #] ),
        FILTER (
            ALL ( 'Table' ),
            'Table'[Region] = __region
                && 'Table'[Store #] <> __store
        )
    )
VAR __filter =
    IF ( MAX ( 'Monthly_Sales'[Store #] ) IN __table, 1 )
RETURN
    __filter

use the measure as the table visual's filter:

vcgaomsft_1-1686548935360.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

some_bih
Super User
Super User

Hi @tb_mbisams_ap then you need simple measure Sales=SUM(Monthly_Sales[Sales]).

In visual table, include Store column and this measure. Share feedback.





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

Proud to be a Super User!






some_bih
Super User
Super User

Hi @tb_mbisams_ap just create relationship between two table, by Store column





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

Proud to be a Super User!






I don't think I explained enough.  These tables already have a relationship, there are other tables with other store metrics as well.  The user enters selects their store number at the top and sees various visuals around metrics exclusive to their store and then has a another visual that shows the sales for other stores in their region. 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.