Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Helper III
Helper III

Grand Total is showing incorrect results in matrix and Table.

Hello All,


Basically we are calculating YOY% for PY Actuals and SY Actuals (Selected Year), but we are getting wrong results in Grand Total.


Below are the caculations for PY Actuals, SY Actuals  and YOY%


SY Actuals = CALCULATE(SUM(Table[Actual Values]),DATEADD('Date'[Date],0 ,DAY))


PY Actuals = CALCULATE(SUM(Table[Actual Values]),DATEADD('Date'[Date],-1 ,YEAR))


YOY% = ([SY Actuals] - [PY Actuals]) / ([PY Actuals])


SY Actuals and PY Actuals Data Type is Whole Number.


Could you please look into this and provide any solution to rectify the issue.


Thanks in advance.

Community Support
Community Support

Hi @Optimusprime_25 ,

Please have a try.

Create measures base on the above formulas.

SY_Measure =
VAR _1 =
    SUMMARIZE ( table, table[date], "aaa", [SY Actuals] )
    IF ( ISINSCOPE ( table[date] ), [SY Actuals], SUMX ( _1, [aaa] ) )
PY_Measure =
VAR _1 =
    SUMMARIZE ( table, table[date], "aaa", [PY Actuals] )
    IF ( ISINSCOPE ( table[date] ), [PY Actuals], SUMX ( _1, [aaa] ) )


And so on.


How to Get Your Question Answered Quickly 


If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .


Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors