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
Claire_Urruty
New Member

Créer une table en sommant des valeurs de lignes d'une autre table

Bonjour,

J'ai une table avec plusieurs lignes pour un même tiers.

J'ai besoin de créer une nouvelle table avec une ligne par tiers, une colonne intitulée "tiers" et une colonne sommant les valeurs d'une colonne de la table d'origine.

J'arrive à créer la table avec la fonction SUMMARIZECOLUMNS, mais je ne trouve pas de fonction pour avoir la somme des valeurs d'une colonne de la table d'origine.

Help !

1 ACCEPTED SOLUTION

Hi Claire_Urruty,

 

Here's a solution:

 

Create a new table Table2, with trhe following formula:

 

Table2 = SUMMARIZE('Table',

                                    'Code_Tiers','Libellé Famille',

                                   "Ha",SUM('Table'[Ha]))

 

Note that I've assued that the input table is named Table.

 

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

 

 

Manguilibe KAO

View solution in original post

4 REPLIES 4
ManguilibeKAO
Resolver I
Resolver I

Hi Claire_Urruty,

 

Could you give some input data  and the corresponding output you want?

 

Best regards.

Hi,

 

Input data :

Code tiersLibellé FamilleLibellé ProductionHa
0080000991MaïsMAIS ROUX CLASSE A IRRIGUE17,00
0080000991MaïsMAIS ROUX CLASSE A NON IRRIGUE4,00
0080000991MaïsMAIS WAXIPRO IRRIGUE11,00
0080000991MaïsMAIS WAXY IRRIGUE10,50
0080000991MaïsMAIS WAXY NON IRRIGUE3,00

 

Output data :

Code tiersLibellé FamilleHa
0080000991Maïs45,50

 

Thanks for your help.

Hi Claire_Urruty,

 

Here's a solution:

 

Create a new table Table2, with trhe following formula:

 

Table2 = SUMMARIZE('Table',

                                    'Code_Tiers','Libellé Famille',

                                   "Ha",SUM('Table'[Ha]))

 

Note that I've assued that the input table is named Table.

 

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

 

 

Manguilibe KAO

It's ok, your post helps me. Thanks a lot !

Have a good day.

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.

Top Solution Authors