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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.