Forum Discussion
nvanzyl24
3 years agoRegular Visitor
Rolling Average - Stop
Hi. I have used the Quick measure to create a rolling average of 3 and 12 months. On the chart the measures go beyond where there is no data. Any suggestions to stop this?
Anonymous
3 years agoNot applicable
Hi nvanzyl24 ,
You can create a measure as below base on the measure [3M] and put this new measure onto the visual to replace the measure [3M]:
Measure =
VAR _maxdate =
MAXX ( FILTER ( ALLSELECTED ( 'Table' ), [Total] <> BLANK () ), 'Table'[Date] )
RETURN
IF ( SELECTEDVALUE ( 'Date'[Date] ) <= _maxdate, [3M], BLANK () )
If the above one can't help you, could you please provide some raw data in your table (exclude sensitive data) with Text format and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:
How to provide sample data in the Power BI Forum
And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards