March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
My need is simple : I have different lines which I want to multiply and I need a global KPI summed by month.
I created a measure : Amount = PRODUCTX(Feuil1,Feuil1[Value])
But of course I'm not specifying how to add that amount up and by default Power BI does a grand total with each row multiplied.
I need some help. Thanks in advance.
Solved! Go to Solution.
@lhdp , Try measures like
sumx(values(Feuil1[Month]), calculate(PRODUCTX(Feuil1,Feuil1[Value])))
or
sumx(values(Table[Month]), calculate(sumX(filter(Table, [Variable] ="Qty"), [Value]) * Maxx(filter(Table, [Variable] ="UnitPrice"), [Value])))
Thanks to you. The 2 solutions run wells. It depend if we want to specify the product or not between variables.
@lhdp , Try measures like
sumx(values(Feuil1[Month]), calculate(PRODUCTX(Feuil1,Feuil1[Value])))
or
sumx(values(Table[Month]), calculate(sumX(filter(Table, [Variable] ="Qty"), [Value]) * Maxx(filter(Table, [Variable] ="UnitPrice"), [Value])))
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
134 | |
91 | |
89 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
72 | |
68 |