Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Bonjour à tous,
Je cherche à effectuer une formule que j'imaginais simple mais que je ne parviens pas du tout à faire.
J'ai une table "Ventes" liée à 2 autres tables : Une "Articles" et une "Barèmes".
Les articles sont regroupés selon certaines catégories, chaque catégorie a un barème.
Je souhaite obtenir un montant total de barème équivalent à : Somme des quantités vendues par catégories * barème de la catégorie, et le total en bas du tableau.
La seule solution que j'ai trouvé est de faire :
Alors j'obtiens le bon résultat dans la colonne mais le total est faux
Merci par avance
Jonathan
Solved! Go to Solution.
@Jo_Chrq ,
Depeding on table relation we bring the column into one table or use that in measure expression
Example
new column = // 1-M relation
related('Montants Barèmes Annuels'[Bareme 2022])
measure= sumx('dwh tSales' ,'dwh tSales'[Qty]) * related('Montants Barèmes Annuels'[Bareme 2022])
Other methods
refer 4 ways (related, relatedtable, lookupvalue, sumx/minx/maxx with filter) to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8
@Jo_Chrq ,
Depeding on table relation we bring the column into one table or use that in measure expression
Example
new column = // 1-M relation
related('Montants Barèmes Annuels'[Bareme 2022])
measure= sumx('dwh tSales' ,'dwh tSales'[Qty]) * related('Montants Barèmes Annuels'[Bareme 2022])
Other methods
refer 4 ways (related, relatedtable, lookupvalue, sumx/minx/maxx with filter) to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8
Hi,
I used the measure with the RELATED function and it works just fine.
Thanks a lot!
Jonathan
User | Count |
---|---|
100 | |
88 | |
79 | |
76 | |
71 |
User | Count |
---|---|
113 | |
104 | |
100 | |
73 | |
65 |