Forum Discussion

watje255_ju's avatar
watje255_ju
Icon for Helper III rankHelper III
4 years ago
Solved

Fix Line Graph for breaks in data, replace blank with 0, then leave blank for months after last sale

Hello, 

 

I have used an IF funtion to replace the blank gross margin % (for months when there is no sales) for 0, so that my line graph doesnt break. 

 

However I then want the months in which there are no sales to return blank, rather than 0, can I please help with this? It seems that when using the IF function blank replacement, all subsequent months are 0, not blank, even when filtering for last sales. 

 

So ideally, the measure, Stop GM% after last sale would be blank from Aug 22 onwards.

 

Measures

 

Thanks!

 

https://1drv.ms/u/s!As8wMr9_bgGrgWstsIAjHqF-oJOI?e=WG8HNb PBIX file link here

Thanks!

2 Replies