Forum Discussion
Graph/Table showing more dates than needed on x-axis
- 2 years ago
Thanks again . I played around with your suggestion and eventually came up with the following:
6-Month Availability % =var _MinDate = TODAY()-184var _MaxDate = TODAY()RETURNIF(ENDOFMONTH(Issues[End Date.[Date]) <= _MinDate,BLANK(),IF(ENDOFMONTH(Issues[End Date].[Date]) > _MaxDate,BLANK(),'Issue Measures'[% Availability]))Its not the perfect solution as it only works on a report looking at the past 6 months, but it will do for now until we can come up with something more flexible.
Thanks again for your help,
David
Probably to do what you want, you need to see the min and max date of the x-axis that has value and after apply the measure.
For example:
VAR _MinDate = CALCULATE(MIN(Date), [measure] <>0)
VAR _MaxDate = CALCULATE(MIN(Date), [measure] <>0)
RETURN
IF(
Selectvalue(Date) >= _MinDate && Selectvalue(Date)<= MaxDate,
[measure],
Blank()
)
Probably the measure that I wrote need to fix some issues but the idea is this.
Thanks again . I played around with your suggestion and eventually came up with the following:
Its not the perfect solution as it only works on a report looking at the past 6 months, but it will do for now until we can come up with something more flexible.
David
- _AAndrade2 years agoResident Rockstar
You just need to dynamically configure the _Min and _Max variables according to your model. That's why I used calculate.