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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Marcin
Helper V
Helper V

Separate into two matrixes

Hi,

 

I have prepared small demo data like this :

 

UnitKPIValue
Unit1KPI112
Unit1KPI211
Unit1KPI315
Unit1KPI416
Unit1KPI522
Unit1KPI656
Unit1KPI745
Unit1KPI833
Unit1KPI922
Unit1KPI1067
Unit2KPI114
Unit2KPI224
Unit2KPI345
Unit2KPI434
Unit2KPI533
Unit2KPI645
Unit2KPI733
Unit2KPI865

 

I am looking for solution when I will be able to create report with two matrixes with max 5 rows each. 

Each Unit can have max 10 KPIs . 

I would like to present 5 kpis for one matrix and 5 or less for second matrix.  

 

So for example , when I select Unit 1 i would like to get this:

 

Capture1.PNG

When I select Unit 2 I would like to get like this :

 

Capture2.PNG

 

I would like to make it dinamically filtered as I can get some new KPIs after refresh dataset, but always max for one unit is 10. 

 

I will be grateful for help.

 

 

3 REPLIES 3
Anonymous
Not applicable

hii @Marcin

  

 calculate the RANK which is gives you the separte index number for UNIT1 and UNIT2 then use the visual filter option for Rank <=5 and Rank>5

 

 

Rank = RANKX (ALL (Sheet1[KPI]), Sheet1[sum_value])

 

Thanks and Reg

pr137

v-shex-msft
Community Support
Community Support

Hi @Marcin,

 

You can try to use following calculate column formula to get ranking based on current unit. Then you can add a topn filter on rank column to choose top 5 ranking based on its value.

Rank =
COUNTROWS (
    FILTER (
        Table3,
        Table3[Unit] = EARLIER ( [Unit] )
            && [Value] > EARLIER ( Table3[Value] )
    )
)
    + 1

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Marcin
Helper V
Helper V

I am thinkig about some kind of index column like this which I have created manually and then use it for filtering matrix as <= 5 and > 5 . 

 

Capture3.PNG

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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