The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have a data source that gives me shipDate with a total Invoice amount. The same table displays an Actual Amount of Invoice . I want a summary table that gives me the total of the Invoice and the total per ship date of the Actual amount bering able to filter on Ship date, but not displaying in the Summary.
Example:
Data source
Ship Date Invoice # Invoice Date Invoiced Amount Actual Amount
03/06/2020 1 03/19/2020 1000.00 250.00
03/06/2020 1 03/19/2020 1000.00 300.00
03/06/2020 1 03/19/2020 1000.00 275.00
I want to display the summary data by Invoice as follows:
Amt Invoiced: 1000 Actual Amount: 825.00
Using Ship Date to be ablew to be used a s a slicer.
Any help would be appreciated.
Solved! Go to Solution.
Hi @Rocky_Brown ,
If the value of the Invoice value is always the same for all line what you can do is to create a measure for the values invoiced, since you can have more than one invoice per day you will need to use the SUMX function, and for the actual amount just a sum.
Do the following measures:
Invoice Total = SUMX(VALUES('Table'[Invoice #]), MIN('Table'[Invoiced Amount]))
Actual Total = SUM('Table'[Actual Amount])
Has you can see below the total get calculated correctly:
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Rocky_Brown ,
If the value of the Invoice value is always the same for all line what you can do is to create a measure for the values invoiced, since you can have more than one invoice per day you will need to use the SUMX function, and for the actual amount just a sum.
Do the following measures:
Invoice Total = SUMX(VALUES('Table'[Invoice #]), MIN('Table'[Invoiced Amount]))
Actual Total = SUM('Table'[Actual Amount])
Has you can see below the total get calculated correctly:
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThank you for the info. This is great!
Don't forget to mark the correct answer to help others.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsKind of. I am trying to put the data on a matrix and am not displaying Invoce#. I am dispalying the data by Warehouse, then the 2 totals. the calcs work when I put on a table. The total for the calculated field displays as zero, and the amount invoiced repeats the total:
Warehouse: Invoiced Amount Actual AMount
a $1400 (total of invoice) 4,000 (Grand Total)
b $300 (Total OF Invoice) 4,000 (Grand Total
TOTALS: $0 $4000,00
Dont know if this can be fixed.
Thank you
Hi @Rocky_Brown,
This type of measures are depending on context so if instead of invoice you are calculating on wharehouse the calculation needs to be different. Can you share a more complete sample?
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsMy matrix shows the following:
Warehouse Total Invoiced (total of entire invoice) Actiual Amount (Per Invoice)
XXX 1,000 875
Data source consists of:
Ship Date Invoice # Invoice Date Invoiced Amount Actual Amount
03/06/2020 1 03/19/2020 1000.00 250.00
03/06/2020 1 03/19/2020 1000.00 300.00
03/06/2020 1 03/19/2020 1000.00 275.00
Does this help?
User | Count |
---|---|
77 | |
75 | |
36 | |
31 | |
28 |
User | Count |
---|---|
106 | |
98 | |
55 | |
49 | |
48 |