Forum Discussion
thebigwhite
3 years agoHelper II
Aggregation Problem with Power BI
Hello I have the following issue: I have two tables. One with Quantity and another with values Basically the user needs a dynamic result: The want to have the minimum quantity for ...
- Anonymous3 years ago
Hi thebigwhite ,
Check the formulas:
itemview = MINX(TableA,TableA[Qty])*CALCULATE(SUM(TableB[amount]),FILTER(TableB,TableB[Value]=SELECTEDVALUE(TableA[Item]))) groupview = CALCULATE(MIN(TableA[Qty]),ALLEXCEPT(TableA,TableA[Item],TableA[Group]))*CALCULATE(SUM(TableB[amount]),FILTER(TableB,TableB[Value]=SELECTEDVALUE(TableA[Item])))Best Regards,
Jay
thebigwhite
3 years agoHelper II
I am sorry I haven't mentioned that the two tables are connected Item<->Value
mangaus1111
3 years agoSolution Sage
is the relationship 1 to many?
- mangaus11113 years agoSolution Sage
The same formula works for the Group View as well