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 a wrong total for my column QTY_conf comparing to the table :
Do you know why I have only 550 in total ?
Thank you,
Best regards,
Ludivine
Solved! Go to Solution.
Hi, @LudivineLOU
The formula is correct for the calculation results of the data in each row of the table.
But when calculating the total row, it will first find the largest max [Pur. Doc. Itm] (60120267700700001), so you will get the QTY (550) where [Pur. Doc. Itm] = max [Pur. Doc. Itm] (60120267700700001).
As a workaround , you can try to create another measure to modify the total:
Qty_conf = CALCULATE(SUM(ZE[SUMQTY]),FILTER(ZE,ZE[Pur.Doc.Itm]=MAX(GR[Pur.Doc.Itm])))Qty_conf2 =
VAR __table = SUMMARIZE(GR,[Pur.Doc.Itm],"__value",[Qty_conf])
RETURN
IF(HASONEVALUE(GR[Pur.Doc.Itm]),[Qty_conf],SUMX(__table,[__value]))
Please refer to the sample pbix file attached for more details.
Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@LudivineLOU , is qty_conf is a measure. Then try like
qty_conf new = sumx(values(Table[vendor]),[qty_conf ])
Unfortunetaly, I got the same result 😞
MESURE 2 =
It is a formula in interaction with an other table called ZE.
Qty_conf = CALCULATE(SUM(ZE[SUMQTY]);FILTER(ZE;ZE[Pur. Doc. Itm]=MAX(GR[Pur. Doc. Itm])))
Thanks
Hi, @LudivineLOU
The formula is correct for the calculation results of the data in each row of the table.
But when calculating the total row, it will first find the largest max [Pur. Doc. Itm] (60120267700700001), so you will get the QTY (550) where [Pur. Doc. Itm] = max [Pur. Doc. Itm] (60120267700700001).
As a workaround , you can try to create another measure to modify the total:
Qty_conf = CALCULATE(SUM(ZE[SUMQTY]),FILTER(ZE,ZE[Pur.Doc.Itm]=MAX(GR[Pur.Doc.Itm])))Qty_conf2 =
VAR __table = SUMMARIZE(GR,[Pur.Doc.Itm],"__value",[Qty_conf])
RETURN
IF(HASONEVALUE(GR[Pur.Doc.Itm]),[Qty_conf],SUMX(__table,[__value]))
Please refer to the sample pbix file attached for more details.
Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 63 | |
| 32 | |
| 31 | |
| 25 |