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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
TransfoBart
Regular Visitor

how to create the PRODUIT function in DAX

Dear all,

I have been tasked to create a PowerBI dashboard, in which there is a portfolio of holdings. All fine, but one requirement: calibrate the portfolio every 15 days.  I figured all out in Excel, and came quite far in PowerBI DAX. That is: up to the column "cumul calibration" as shown below.  In excel it´s a plain PRODUCT function, but I have no clue how to do this in DAX.

 

 

TransfoBart_0-1680025676924.png

Would be great if anyone can help me out,

cheers

3 REPLIES 3
TransfoBart
Regular Visitor

Dear Daniel, I would like to use this as a measure: the values in the [calibration per 15 days] are coming from a measure. However, if I do that, I am missing the row context; "EARLIER refers to an earlier row context which doesn´t exist".  Any ways around this?

TransfoBart
Regular Visitor

merci beaucoup Daniel!  Works beautifully...

wdx223_Daniel
Super User
Super User

NewColun=PRODUCTX(FILTER(Table,Table[Date]<=EARLIER(Table[Date])),Table[calibration per 15 days])

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors