Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
PKGARG
Helper I
Helper I

By default formula not working in total

HI To All

I have data MonthWise. Its working when i see monthwise but when i see product overall then its show total not using formula to accumulate data. e.g.

Month  Current Year  Last Year  Growth

Apr        1000             700           42.86%

May       1500             1800        -16.67%

Jun        2000             1800          11.11%

Total     4500             4300         37.30% , but it should be  4.65%

1 ACCEPTED SOLUTION

Hi @PKGARG,

 

In your scenario, if you use calculated column (FORMULA GROWTH = (CURRENT YEAR - LAST YEAR)/ LAST YEAR), it will add all FORMULA GROWTH on Total level just like the total for Current Year and Last Year.

 

To achieve your requirement, please create a measure like below:

 

Growth = CALCULATE(SUM(Table2[Current Year])-SUM('Table2'[Last Year]))/SUM(Table2[Last Year])

 

q6.PNG

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Phil_Seamark
Employee
Employee

Hi @PKGARG

 

I think you need to use a SUMX function for your Growth measure.

 

Have a read of this blog, especially the part near the bottom when it talks about handling totals using DAX Iterators.

 

http://exceleratorbi.com.au/sum-vs-sumx-in-dax/


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

IN DATABASE I HAVE DATA MONTHWISE OF TWO YEAR. I HAVE CREATED A NEW COLUMN IN PI DESKTOP FOR GROWTH WITH FORMULA GROWTH = (CURRENT YEAR - LAST YEAR)/ LAST YEAR.

NOW IN DASHBOARD WHEN I SEE DATA MONTHWISE ITS OK, BUT WHEN SUMMARISED IT SHOW TOTAL OF ALL MONTH GROWTH

Hi @PKGARG,

 

In your scenario, if you use calculated column (FORMULA GROWTH = (CURRENT YEAR - LAST YEAR)/ LAST YEAR), it will add all FORMULA GROWTH on Total level just like the total for Current Year and Last Year.

 

To achieve your requirement, please create a measure like below:

 

Growth = CALCULATE(SUM(Table2[Current Year])-SUM('Table2'[Last Year]))/SUM(Table2[Last Year])

 

q6.PNG

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Yes This is my Solution.

 

Thank You Very Much.

 

Please always help me, i am new and want everything in simple way like this.

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors