Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Power Query
Unanswered

Automatic Custom Columns with YTD Calculation

(1) ShareShare
ReportReport
Posted on by 4
Hi,
I am enclosing an Excel file with a Table from a Power Query instance I am working on.
The Table shows figures of following fields combinations:
  • CATEGORY (Frames, Lenses)
  • SUPPLIER (Supplier 1, Supplier 2)
  • CLASS (A, B)
  • AGGREGATE (Sell-Out, Sell-In)
  • MONTHS (from January to June)
The Table derives from a Query and the database is supposed to be updated each month.
What I am trying to achieve, but I am unable to, is to create a custom column with the YTD calculation for each single month.
In this example, being the months 6 (From Jan to Jun) there should be 6 additional columns as follows:
  • YTD January (equals to January naturally)
  • YTD February
  • YTD March
  • ... and so on
calculating YTD for each combination Category/Supplier/Class/Aggregate
 
and naturally once the query is refreshed after updating the database, columns shall upgrade too considering the number of months inside the database.
 
Can you please help me?
 
Thank you
 
Mark
Categories:
YTD Automatic Cal...

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

  • Michael E. Gernaey Profile Picture
    44,770 Super User 2025 Season 1 on at
    Automatic Custom Columns with YTD Calculation
    Hi
     
    Your picture isn't working, please add the details related to the calculations, Excel Table, examples etc.
     
    Showing up is way better than trying to explain. Looks like you might have tried, not sure why the Attachment isn't working.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1

Featured topics