Forum Discussion
DAX Help : Previous 3 Months average
- 4 years ago
Anonymous
Average of Previous 3 Full Months = VAR _current_date = 'Table'[GRN Date] VAR _end_point = EOMONTH(_current_date, -1) VAR _start_point = EOMONTH(_current_date, -4) + 1 VAR _min_date_total = MIN('Table'[GRN Date]) VAR _result = DIVIDE( SUMX( FILTER( 'Table', 'Table'[GRN Date] >= _start_point && 'Table'[GRN Date] <= _end_point ), 'Table'[Lead Time (Days)] ), 3 ) RETURN IF( EOMONTH(_start_point, -1) >= EOMONTH(_min_date_total, -1), _result )
In case it answered your question, please accept the solution to help other members find it. Appreciate Your Kudos.Showcase Report – Contoso By SpartaBI
Visit SpartaBI website Visit SpartaBI Linkdin Visit SpartaBI Facebook
SpartaBI Logo - 4 years ago
Anonymous we are not dealing here with best practice stuff, but, as we created the column before you can create this measure to use as the line value:
Average of Previous 3 Full Months Measure Dependant on Coloumn =AVERAGE('Table '[Average of Previous 3 Full Months Calculated Column])
In case it answered your question, please accept the solution to help other members find it. Appreciate Your Kudos.Showcase Report – Contoso By SpartaBI
Visit SpartaBI website Visit SpartaBI Linkdin Visit SpartaBI Facebook
SpartaBI Logo
Anonymous we are not dealing here with best practice stuff, but, as we created the column before you can create this measure to use as the line value:
In case it answered your question, please accept the solution to help other members find it. Appreciate Your Kudos.
Showcase Report – Contoso By SpartaBI
Visit SpartaBI website Visit SpartaBI Linkdin Visit SpartaBI Facebook
SpartaBI Logo
Hi SpartaBI , thanks for the clarification !!! appreciate!
- SpartaBI4 years ago
Community Champion
Anonymous my pleasure. Please also mark the previous message as a solution for community visabilty.
P.S.
Check out my showcase report - got some high level stuff there 🙂
https://community.powerbi.com/t5/Data-Stories-Gallery/SpartaBI-Feat-Contoso-100K/td-p/2449543
Give it a thumbs up if you liked it 🙂- Anonymous4 years agoNot applicable
yup ! have mark that as solution already !
will definetely check on the report !
- Anonymous4 years agoNot applicable
SpartaBI , do you have any experience on automating the process of extrating data from different data source ? such as Oracle ?
- SpartaBI4 years ago
Community Champion
Anonymous not sure what you meant?
1. Extracting data from oracle to Power BI? (In this case you need an oracle client and a Power BI gateway)
2. Creating an automation process that will create a DW from the data in Oracle in something that is more suitable for Power BI like Azure SQL?