Nov 05 2020 11:36 AM - edited Nov 05 2020 01:27 PM
Hi Every one
I have problem in written Dax formula in Pivot Table or Power BI
How can I Formula which its result be like the sample which I showed in attached Excel file,
I have Two item with the purchases invoice, and Purchase quantity is repeated in the file,
I want a DA X Formula which it works correctly for Sum purchase quantity and sale Quantity,
Also i want that its Supplier and Sale Date Filters in Slicers work correctly,
Thank you for your cooperation in advance
Nov 05 2020 01:13 PM
Hi Jalal,
Please note that your answer in Pivot Table is not correct.
You may use different DAX Functions to solve your issue.
I used ADDCOLUMNS and Values Functions.
PBIX formatted files are not supported.
I can send you this pbix if you provide me with your e-mail addres.
However, the formula is as follows:
Nov 05 2020 01:21 PM - edited Nov 05 2020 01:30 PM
@Ilgar_Zarbaliyev
Thank you Dear For you reply , Kinldy this is my Email " jalalrahimi87@yahoo.com "
the result shroud be, please notice the Purchase quantity are repeated is sale records.
Reslut in pivot Table should be as:
Item Pure Q Sale Q
A 300 115
B 100 40
Nov 05 2020 11:25 PM
Hi there,
I sent you pbix file.
Good luck.
P.S. If you find my answer satisfactory and consider that it is your best answer, please mention it.
Thanks in advance.
Nov 06 2020 01:29 AM
Nov 06 2020 05:14 AM
SolutionMeasures could be
Pure Q:=VAR qtyPerInvoice=SUMMARIZE (
Range,
Range[Item],
Range[Purchase ivoice],
"PurchaseQuantity", VALUES(Range[Purchase Quantity])
)
RETURN SUMX( qtyPerInvoice, [PurchaseQuantity])
Sales Q:=SUM(Range[Sales Quantiy])
Result is
Please check in attached file.
Nov 06 2020 09:18 AM
Nov 06 2020 05:14 AM
SolutionMeasures could be
Pure Q:=VAR qtyPerInvoice=SUMMARIZE (
Range,
Range[Item],
Range[Purchase ivoice],
"PurchaseQuantity", VALUES(Range[Purchase Quantity])
)
RETURN SUMX( qtyPerInvoice, [PurchaseQuantity])
Sales Q:=SUM(Range[Sales Quantiy])
Result is
Please check in attached file.