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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
Jkaelin
Resolver I
Resolver I

Calculate product by year

Good morning,

 

Overall, I am seeking to produce a measure that can calculate the product by year.  All my current attempts have failed.  An overview is this:  I have a column of data in which I calculate the top 20% & bottom 20% via a percentile measure.  I then calculate the spread between those two.  The spread is summarized monthly.  

 

My hope is to take the spread results that are summarized by month & calculate the results on a yearly basis via "product", not sum or average, etc.  

 

My spread measure summarized for each month is this:

P/E Tk minus Bk:=IF (1 + ( ( [P/E Percentile Top k] - [P/E Percentile Bottom k] )
/ 100 ) 
= 1,
BLANK (),
1 + ( ( [P/E Percentile Top k] - [P/E Percentile Bottom k] )
/ 100 )
)

 

A snap shot of the summarized results are below.  I want similar results, but by year & the monthly results shown in the image to be multiplied together.  Spread Measure.PNGAny suggestions or ideas?  Kindly & Thank you!  James

 

2 REPLIES 2
Phil_Seamark
Microsoft Employee
Microsoft Employee

Hi @Jkaelin

 

Based on your sample data, can you please provide what the expected outcome should look like?

 

Feel free to mock up in Excel or similar to help clarify what you are after. 🙂


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

Proud to be a Datanaut!

@Phil_Seamark

 

Hey Phil!  Below is a sample data & expected outcome.  The expected outcome is highlighted in yellow.  

 

  • The yellow formula is (like in Excel) =Product(IF(Year(Row Labels=2006),Column B)).  
  • It's the 2006 data, multiplied together.  
  • Also, 1.0165 = (1.02 X 1.00 X 0.98 X 1.01)
  • Quick Note:  Column B is not a column of regular data or a calculated column, it's the pivot table result of measures.  

 

 Spread Measue_1.PNG

 

I was hoping a calculated(productx(...)) would work, but to no avail.  I've tried summarize & other alternatives.  I'm just not that good in DAX yet.  Any help would be much appreciated.

 

Thank you & kindly,

James

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.