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.
Hello,
I'm new in DAX and I need some help. I try to create new measure to calculate the amount for my accounts. But the problem is that I have amount from each account by months. Like in the table below.
And I want to see amount from January in April, from February in May, from March in June, from April in July, from May in August, from June in September and so on.
My question is, how can I do it by DAX formulas?
This is very easy on condition that you've got the correct model.
[Balance -3Mth] =
CALCULATE(
[Balance],
DATEADD(
Calendar[Date],
-3,
month
)
)
Best
D
Can you tell me how to create this formula if I want to add vaules from January to March and show it as a sum of March and January and with next months the same situation ?
@Anonymous I base on three tables and four columns.
date: Posting_Date (hierarchy: day, month, year) from "General Ledger Entries" table
values: Amount (as a sume) from "General Ledger Entries" table
and accounts from "dictionary VAT' table
I was trying to change your formula for my needs like that
CALCULATE( 'General Ledger Entries'[Amount];
DATEADD(
'General Ledger Entries'[Posting_Date].[Miesiąc],
-3,
month
)
)
but still doesn't working
@ola1996 , Image is not visible
Can you share sample data and sample output.
@ola1996 , can not tell mistake with image, need sample data
I thing it's impossible because these are data directly from Dynamics 365 BC.
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 |
---|---|
47 | |
22 | |
20 | |
15 | |
13 |
User | Count |
---|---|
49 | |
41 | |
39 | |
19 | |
19 |