Forum Discussion
pbiuser1122
2 years agoFrequent Visitor
How to ignore first value shown in line graph when using a moving range measure
Hi, I've encountered an issue when populating a line graph with a moving range calculation. The screenshot below shows the graphs that I have. - The first graph simply shows mean values over ti...
Ahmedx
Super User
2 years agoyou don’t need to put everything in one measure
need to be written separately as two measures
pbiuser1122
2 years agoFrequent Visitor
When I try your measure as a separate measure, it does not give the desired output:
The Moving Range line is what my desired output is but with the first value being ignored.
Your suggested Measure is returning the Sum of Mean Value that the Moving Range Measure is built off of.
- Ahmedx2 years ago
Super User
pls try this
if this doesn't help then share the file
Moving Range = VAR _MinDate = MINX ( ALLSELECTED ( 'Data' ), 'Data'[Created On] ) VAR EarlierTime = CALCULATE ( MAX ( 'Data'[Created On] ), FILTER ( ALLSELECTED ( 'Data'[Created On] ), 'Data'[Created On] < SELECTEDVALUE ( 'Data'[Created On] ) && 'Data'[Created On] > _MinDate ) ) VAR EarlierMeasureValue = CALCULATE ( [Sum of Mean Value], 'Data'[Created On] = EarlierTime ) VAR Moving_Range = ABS ( EarlierMeasureValue - [Sum of Mean Value] ) RETURN Moving_Range- pbiuser11222 years agoFrequent Visitor
I created an example file but do not see an option to attach a pbix file.
- Ahmedx2 years ago
Super User
upload to onedrive or another