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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Excel formula in DAX

Hi Experts

 

Looking at the attached screen output how would you do the following calculation in DAX.

 

i want to be able to work out H5 = H4*G5 and populate that down in a column in my table.

Sample.PNG

1 ACCEPTED SOLUTION
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

One sample for your reference, please check the following steps as below.

 

1. Insert an index column in power query.

 

Capture.PNG

2. Create a calculated column as below.

H = 
PRODUCTX(FILTER('Table','Table'[Index] <=EARLIER('Table'[Index])),[1-d/n])

2.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

4 REPLIES 4
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

One sample for your reference, please check the following steps as below.

 

1. Insert an index column in power query.

 

Capture.PNG

2. Create a calculated column as below.

H = 
PRODUCTX(FILTER('Table','Table'[Index] <=EARLIER('Table'[Index])),[1-d/n])

2.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
MattAllington
Community Champion
Community Champion

Here is no answer to this question.  DAX formulas always depend on the table structure. You need to learn to layout a visual so that you get visual cues similar to what you are used to in Excel. Have a look at my article -it should  help you with the concept (not the answer - you will need to work through the problem) 

https://exceleratorbi.com.au/compound-growth-using-dax/



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.
Anonymous
Not applicable

thanks matt for the heads up, this is tricky as hell. 2 hours down and no solution.

Anonymous
Not applicable

Hi Matt

 

if my row where not filter as per pivot table using teh following dax. Should i get a constant answer as opposed to increment of 1 to last row in table i.e. 1, 2 , 3, 4, etc until 2788. i am see 2788 for each row.

FilteredRows =
VAR LatestYear =
    MAX ( Rates[Year] )
VAR UnfilteredTable =
    ALL ( Rates )
RETURN
    COUNTROWS ( FILTER ( UnfilteredTable, Rates[Year] <= LatestYear ) )

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors