I am trying to display on time performance as a percentage using a calculated column in PowerBI but when I filter the dates on my dashboard, all months or weeks outside of the filter display as 100% rather than disappearing like all other visuals on the dashboard. Even more strange is when using a line and clustered column chart, it works fine but does not work properly with a line chart.
This is my calculated column formula: Controllable On-Time = 1-(CALCULATE(COUNT('Order Data Query'[QC Code]),FILTER('QC Code Key','QC Code Key'[Controllable?] = "Controllable")) / COUNT('Order Data Query'[Job ID]))