Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I have a dataset that includes columns "Invoice Date" and "InvoiceAmt". I want to show the InvoiceAmt of the most recent Invoice (MAX Invoice Date) So that I can compare it to the Moving 3 Month Average of InvoiceAmt (Already calculated)
Solved! Go to Solution.
Hi @bhmiller89
You can try the below for your MAX
Sales Last Invoice =
CALCULATE(
[Sales], -- this where you place your InvoiceAmt
TREATAS(
LASTDATE( Sales[OrderDateKey] ), -- this is where you place your Invoice Date
'Calendar'[Date]
)
)
Hi @bhmiller89
You can try the below for your MAX
Sales Last Invoice =
CALCULATE(
[Sales], -- this where you place your InvoiceAmt
TREATAS(
LASTDATE( Sales[OrderDateKey] ), -- this is where you place your Invoice Date
'Calendar'[Date]
)
)
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
136 | |
118 | |
101 | |
71 | |
61 |