Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
User | Count |
---|---|
86 | |
85 | |
68 | |
67 | |
63 |
User | Count |
---|---|
210 | |
118 | |
116 | |
81 | |
74 |