Forum Discussion
DAX repeating values
Benedict21 , Try a measure like using Incidents Forecast measure
calculate(lastnonblankvalues(Date[Date], [Incidents Forecast]), filter(all(Date), Date[Date] <= max(date[Date]) )
Hi,
Thank you, but the results are 0s and 1s.
- Benedict213 years agoFrequent Visitor
I tried using this measure; however, it is not providing the correct result.
Test =
CALCULATE(LASTNOTBLANKVALUE('Dates'[Date], [Incidents Forecast]), FILTER(ALL('Dates'[Date], [Date] <=MAX('Dates'[Date])))
- amitchandak3 years agoSuper User
Benedict21 ,
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.- Benedict213 years agoFrequent Visitor
Hi! Thank you so so much for your help! I recreated the file with test data. I have 5 columns:
DateCount of Incidents
Count Incidents Sum (measure)
Count Incidents rolling average (measure)Cumulative Forecast (measure)
I want to repeat the forecasted value for the next month (9 in this case), and not continue the rolling average. So Jan 2023, Feb 2023, Mar 2023, etc., should all equal 9.Thank you again for your help!