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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
MarkPalmberg
Kudo Commander
Kudo Commander

Calculate columns for fiscal year aggregations

Two issues for which I'm seeking best practices. Here's my data scenario:

pledges.PNG

I'd like to:

  1. Create new columns, per PledgeID, for sum of payments by fiscal year. Does it make sense to create a new table to hold this data? Do I have to create each column (measure) separately, or is there a way to iterate through the InstallmentFY column to generate the new aggregated columns?
  2. In my table, then, I'd like to display only the fiscal year columns for the 3 years prior to and from the current date. I assume this would take the form of a Page level filter?

Thanks very much for any thoughts you may have on the matter.

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @MarkPalmberg ,

 

#1, You can try to use following calculated column to achieve your requirement.

 

Sum of Current FY =
CALCULATE (
    SUM ( Table[InstallmenntAmount] ),
    FILTER (
        ALL ( Table ),
        [PledgeID] = EARLIER ( Table[PledgeID] )
            && [InstallmentFY] = EARLIER ( Table[InstallmentFY] )
    )
)

 

 

#2, I'd like to suggest you write a measure to compare current FY and today's FY and return tag. Then drag this measure to visual level filter and keep Y tag records.

 

Sample:

Tag Measure =
VAR todayFY = 'formula to convert today to FY'
VAR currFY =
    MAX ( Table[InstallmentFY] )
RETURN
    IF ( currFY <= todayFY - 3, "Y", "N" )


Regards,

Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

HI @MarkPalmberg ,

 

#1, You can try to use following calculated column to achieve your requirement.

 

Sum of Current FY =
CALCULATE (
    SUM ( Table[InstallmenntAmount] ),
    FILTER (
        ALL ( Table ),
        [PledgeID] = EARLIER ( Table[PledgeID] )
            && [InstallmentFY] = EARLIER ( Table[InstallmentFY] )
    )
)

 

 

#2, I'd like to suggest you write a measure to compare current FY and today's FY and return tag. Then drag this measure to visual level filter and keep Y tag records.

 

Sample:

Tag Measure =
VAR todayFY = 'formula to convert today to FY'
VAR currFY =
    MAX ( Table[InstallmentFY] )
RETURN
    IF ( currFY <= todayFY - 3, "Y", "N" )


Regards,

Xiaoxin Sheng

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors