Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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 each Item by Group.
This must be multiplied by the Value of the relative Table.
The want to be free to select on which group evaluate the analysis.
Can you help me?
Solved! Go to Solution.
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
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
I am sorry I haven't mentioned that the two tables are connected Item<->Value
is the relationship 1 to many?
The same formula works for the Group View as well
Hi @thebigwhite ,
MINX(TableA;TableA[Qty]*RELATED(TableB[Value])) is a measure (not a calculated column). It works only if you create a 1 (Table B) to many (Table A) relationship.
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Resolver!!
@thebigwhite , Create a new column in Table1
Maxx(filter(Table2, Table2[item] = table1[item]), Table2[Value]) *Table[Qty]
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 46 | |
| 43 | |
| 39 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 65 | |
| 31 | |
| 28 | |
| 24 |