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.
Hi - I need help with the right dax measure/column to get the PY Actuals to report correctly in this matrix with the Actuals slicer.
I got the prior year Actuals in the Actuals Table and can see the correct prior year amount correctly but can't get it correct added as a column in the report. Also why is the total for PY_Actuals showing the sae amount as th elast line and why doesn't it sum correctly? Any help appreciated here.
Solved! Go to Solution.
Also can's seem to get the current year and PY actuals by date to summarize into total aggregates by month.
Hi @DannyMiletic ,
Please follow the steps below and check if it can return your expected result.
1. Update the formula of measure [PY Actuals] as below
PY Actuals =
VAR _seldate =
SELECTEDVALUE ( Actuals[Date] )
VAR _selamount =
SELECTEDVALUE ( Actuals[Account] )
VAR _pre =
DATE ( YEAR ( _seldate ) - 1, MONTH ( _seldate ), DAY ( _seldate ) )
RETURN
CALCULATE (
SUM ( Actuals[Value] ),
FILTER (
ALLSELECTED ( Actuals ),
Actuals[Date] = _pre
&& Actuals[Account] = _selamount
)
)
2. Create a measure as below base on the measure [PY Actuals] and put this new measure on your matrix visual to replace the original measure [PY Actuals]
Measure =
SUMX (
GROUPBY ( Actuals, Actuals[United States], Actuals[Account] ),
[PY Actuals]
)
Best Regards
Also can's seem to get the current year and PY actuals by date to summarize into total aggregates by month.
Hi @DannyMiletic ,
Please follow the steps below and check if it can return your expected result.
1. Update the formula of measure [PY Actuals] as below
PY Actuals =
VAR _seldate =
SELECTEDVALUE ( Actuals[Date] )
VAR _selamount =
SELECTEDVALUE ( Actuals[Account] )
VAR _pre =
DATE ( YEAR ( _seldate ) - 1, MONTH ( _seldate ), DAY ( _seldate ) )
RETURN
CALCULATE (
SUM ( Actuals[Value] ),
FILTER (
ALLSELECTED ( Actuals ),
Actuals[Date] = _pre
&& Actuals[Account] = _selamount
)
)
2. Create a measure as below base on the measure [PY Actuals] and put this new measure on your matrix visual to replace the original measure [PY Actuals]
Measure =
SUMX (
GROUPBY ( Actuals, Actuals[United States], Actuals[Account] ),
[PY Actuals]
)
Best Regards
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 |
---|---|
104 | |
95 | |
80 | |
67 | |
62 |
User | Count |
---|---|
146 | |
110 | |
107 | |
86 | |
63 |