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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
McShock
Frequent Visitor

Productx with measure

Hi Dear DAX Experts, I know the almost excactly the same question has been asked before by @sgupta22 but the solution was presented in the BI File and the file is no longer available. So let me ask for help for the following problem:

 

I want to compound monthly growth rates.

 

The growth rates are the result of a Measure: 

 

Growth Rates.png

 

So far so good, but now I want to compound theses growth rates by creating an Index showing the cumulative growth and I do not know how to do it. If the rates were in a column I could use productx. But the rates are in a measure. In Excel what I need would be this: 

DaxCumPerfExcel.jpeg

 

Is there a way to do this?

 

Thanks in advance.

Markus

 

3 REPLIES 3
sgupta22
Helper II
Helper II

Hi Markus

 

I believe this is what you are looking for.  Hopefully this solves your query!

 

Cheers

SG

 

https://www.dropbox.com/scl/fi/sc3rk91amht8bt7gki47m/CAGR-calcualtion-v1.pbix?rlkey=rshoihhnaoufrkxj...

Greg_Deckler
Community Champion
Community Champion

@McShock Try:

Measure = 
  VAR __Date = MAX('Dates'[Date])
  VAR __Table = SUMMARIZE( FILTER( 'Dates', [Date] <= __Date), [Year], [Month], "__Value", [Performance %])
  VAR __Result = PRODUCTX( __Table, [__Value] )
RETURN
  __Result

It's the measure aggregation pattern. This looks like a measure aggregation problem. See my blog article about that here: https://community.powerbi.com/t5/Community-Blog/Design-Pattern-Groups-and-Super-Groups/ba-p/138149

The pattern is:
MinScoreMeasure = MINX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
MaxScoreMeasure = MAXX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
AvgScoreMeasure = AVERAGEX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
etc.

 

If you need something more specific, Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi Greg, Thank you for taking the time!

This is interesting. Dax accepts the productx in this context, but yields me the monthly return that I already have instead of compounding it. 

 

McShock_0-1714323069837.png

Screenshot 2024-04-28 185141.png

 

Thank you anyway.

 

Markus

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.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.