Hi @Almasi, Gus ,
Welcome to Microsoft Q&A!
In my environment, the results of the run is the same as yours. Of course, I use my own test data.
Please refer to this document about CALCULATE: https://learn.microsoft.com/en-us/dax/calculate-function-dax
The is as follows:
CALCULATE(<expression>[, <filter1> [, <filter2> [, …]]])
Your ALL() are the filters that should be placed at the back. The SUM() is your expression.
Thus, here are your new statements:
Last year Actual ledger =
VAR PLDG =
IF (
MONTH ( TODAY () ) <= 6,
CONCATENATE (
CONVERT ( VALUE ( RIGHT ( YEAR ( TODAY () ), 2 ) - 1 ), STRING ),
"ACT"
),
CONCATENATE ( RIGHT ( YEAR ( TODAY () ), 2 ), "ACT" )
)
RETURN
CALCULATE (
SUM ( Data[Amount] ),
ALL ( 'Comparing Date'[FY] ),
ALL ( dDate[FY] ),
ALL ( 'Comparing Date'[Period] ),
ALL ( dDate[Period] ),
ALL ( 'comparing scenario'[Senario] ),
ALL ( Scenario[Senario] ),
ALL ( Data[Ledger_Name] ),
data[Ledger_Name] = PLDG
)
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data).
Best regards,
Seeya
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.