Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
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 |
---|---|
77 | |
77 | |
68 | |
67 | |
49 |
User | Count |
---|---|
108 | |
104 | |
93 | |
83 | |
64 |