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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
MaiconTareto
Regular Visitor

Classificar coluna matriz específica

Olá @comu

 

Tenho uma dúvida...

 

Criei uma tabela matriz onde possuo um top 10 em linhas e colunas em meses. Só que preciso que a última coluna minha que seria abr/23 ficasse do maior para o menor, alguma ideia de como fazer isso, pois se eu classificar do maior para o menor, ele fará isso só te o valor total acumulado dos meses. E eu só quero classificar pela ordem do mês de abril

 

20230513_165324.jpg

 

 

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @MaiconTareto ,

 

Here are the steps you can follow:

1. Create calculated column.

Rank =
RANKX(
    FILTER(ALL('Table'),
    'Table'[Group]=EARLIER('Table'[Group])),[Date],,DESC)

vyangliumsft_0-1684116460674.png

2. Create calculated table.

Table2 =
FILTER(
    'Table','Table'[Rank]=MAXX('Table',[Rank]))

vyangliumsft_1-1684116460676.png

3. Join the relationship between two tables.

vyangliumsft_2-1684116507652.png

4. Select [Group] – Column tools – Sort by column – [Value].

vyangliumsft_3-1684116507654.png

5. Result:

vyangliumsft_4-1684116540415.png

 

Best Regards,

Liu Yang

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

1 REPLY 1
v-yangliu-msft
Community Support
Community Support

Hi  @MaiconTareto ,

 

Here are the steps you can follow:

1. Create calculated column.

Rank =
RANKX(
    FILTER(ALL('Table'),
    'Table'[Group]=EARLIER('Table'[Group])),[Date],,DESC)

vyangliumsft_0-1684116460674.png

2. Create calculated table.

Table2 =
FILTER(
    'Table','Table'[Rank]=MAXX('Table',[Rank]))

vyangliumsft_1-1684116460676.png

3. Join the relationship between two tables.

vyangliumsft_2-1684116507652.png

4. Select [Group] – Column tools – Sort by column – [Value].

vyangliumsft_3-1684116507654.png

5. Result:

vyangliumsft_4-1684116540415.png

 

Best Regards,

Liu Yang

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

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.