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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
mahirk
New Member

Percentage calculation in PowerPivot

Hi All,

 

I have a table in PowerPivot with Month, Quarter,Product and Actual for 3 years data. I need a calculating column or Measure which calculates percentage of Month. It needs to calculate as Sum of the Total Month/Sum of the Quarter.

Is it possible? Please help

 

Thanks & Regards,

Mahesh

2 REPLIES 2
mahirk
New Member

Can someone helpme out in the formula

Hi @mahirk,

I create the sample data table which including date and sales for each day. 

I create calculated columns to get year, quarter and month.

Year = YEAR(Test1[Date])

Quarter = ROUNDUP(MONTH(Test1[Date])/3, 0)

Month = MONTH(Test1[Date])


Create a calculating column which calculates percentage of Sum of the Total Month VS Sum of the Quarter.

 

Percentage = CALCULATE(SUM(Test1[Sale]),ALLEXCEPT(Test1,Test1[Month]))/CALCULATE(SUM(Test1[Sale]),ALLEXCEPT(Test1,Test1[Quarter]))



Capture20.PNG

Finally create a table to display the result.

Capture21.PNG

If you have other issues, please let me know.


Best Regards,
Angelia

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.