Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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]
)
)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
117 | |
104 | |
77 | |
73 | |
52 |
User | Count |
---|---|
145 | |
109 | |
109 | |
90 | |
64 |