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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Anonymous
Not applicable

Select multi consecutive rows in Matrix Visual

Hi everyone,

 

Is there a way to select consecutive rows in a Matrix Visual?

I can see by pressing "Ctrl" can multi select anything, but how about a user wants to select the first 100 items? or the items from 3-25? By pressing "Shift" does not work.

 

Thanks.

H

1 ACCEPTED SOLUTION

Hi, @Anonymous 

 

My previous method is suitable for matrix and measure, but it needs to be set for each visual. You didn't mention multiple viusal before, so I didn't consider it. 

For the questions you asked later, I have a workaround. 

Since you have other measures in the filterpane that will affect the filter results, you need to create a table first(from your measure).

 

 

Table 2 = filter(Summarize(Raw, Raw[Query], "_1", calculate(SUM(Raw[Impressions]),filter(Raw,Raw[Domian] ="domain0")), "_2", calculate(SUM(Raw[Impressions]), filter(Raw,Raw[Domian] ="domain1"))), not(isblank([_1])) && isblank([_2]))

 

 

Then 

1. Create a measure for rank.

Like this:

 

rank =
RANKX (
    FILTER ( ALL ( Raw ), [Query] IN DISTINCT ( 'Table 2'[Query] ) ),
    CALCULATE ( MAX ( Raw[Query] ) ),
    ,
    ASC,
    DENSE
)

 

2. Create a custom slicer based on the value of rank.

vjaneygmsft_1-1623983119217.png

 

vjaneygmsft_0-1623982147573.png

3. Create a measure in filter pane to filter data.(each visual)

Like this:

 

sort = IF([rank] in DISTINCT(Parameter[Parameter]),1,0)

 

vjaneygmsft_2-1623983193610.png

Finally, you can use slicer to filter data you want.

vjaneygmsft_3-1623989828833.png

Reference: Use what-if parameters to visualize variables - Power BI | Microsoft Docs

Best Regards

Janey Guo

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-janeyg-msft
Community Support
Community Support

Hi, @Anonymous 

 

According to your description, I think you can easily create a measure, then use it in filter pane to filter data you want.

Like this:

Measure = RANKX(ALL('Table'),[Column3],MAX([Column3]),ASC)

v-janeyg-msft_1-1623057029066.png

v-janeyg-msft_2-1623057067048.png

If it doesn't solve the problem, Please feel free to ask me.

 

Best Regards

Janey Guo

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi @v-janeyg-msft , sorry I need to un-mark your reply as solution.

Reason:

I just checked the PBI file, your solution is working on a Table, but not matrix visual.

The expect result is:

if there is a way I can select consecutive items in a matrix visual.

As you can see, top 4 items are selected in Matrix Visual 1, so that in Matrix Visual 2 only 4 Query and their Pages are displayed.

h_l_1-1623936415179.png

 

Sample PBI file FYI.

I hope to have your further help.

Thank you in advance and have a safe day!

H

 

 

 

Hi, @Anonymous 

 

My previous method is suitable for matrix and measure, but it needs to be set for each visual. You didn't mention multiple viusal before, so I didn't consider it. 

For the questions you asked later, I have a workaround. 

Since you have other measures in the filterpane that will affect the filter results, you need to create a table first(from your measure).

 

 

Table 2 = filter(Summarize(Raw, Raw[Query], "_1", calculate(SUM(Raw[Impressions]),filter(Raw,Raw[Domian] ="domain0")), "_2", calculate(SUM(Raw[Impressions]), filter(Raw,Raw[Domian] ="domain1"))), not(isblank([_1])) && isblank([_2]))

 

 

Then 

1. Create a measure for rank.

Like this:

 

rank =
RANKX (
    FILTER ( ALL ( Raw ), [Query] IN DISTINCT ( 'Table 2'[Query] ) ),
    CALCULATE ( MAX ( Raw[Query] ) ),
    ,
    ASC,
    DENSE
)

 

2. Create a custom slicer based on the value of rank.

vjaneygmsft_1-1623983119217.png

 

vjaneygmsft_0-1623982147573.png

3. Create a measure in filter pane to filter data.(each visual)

Like this:

 

sort = IF([rank] in DISTINCT(Parameter[Parameter]),1,0)

 

vjaneygmsft_2-1623983193610.png

Finally, you can use slicer to filter data you want.

vjaneygmsft_3-1623989828833.png

Reference: Use what-if parameters to visualize variables - Power BI | Microsoft Docs

Best Regards

Janey Guo

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

thank you @v-janeyg-msft .

Anonymous
Not applicable

Just to let you know that I've submitted Ideas here:

https://ideas.powerbi.com/ideas/idea/?ideaid=8ad096f7-2ec5-eb11-ba5e-501ac5245817

 

Thanks.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.