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.
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])))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
97 | |
85 | |
67 | |
59 |
User | Count |
---|---|
150 | |
120 | |
100 | |
87 | |
68 |