ValentinC-BR opened a new issue #17012:
URL: https://github.com/apache/superset/issues/17012


   When a KPI is equal to 0 during 2 periods, the time comparison (+ 0%) isn't 
displayed
   
   #### How to reproduce the bug
   
   1. Create a KPI with trendline
   2. Write "0" in Metrics / Custom SQL
   3. Chose time comparison period = 1
   4. Run
   
   ### Expected results
   
   "+ 0%" (and the subheader !) should be displayed next to the number
   
   ### Actual results
   
   There is no subheader nor time comparison.
   However, this works with stable trendlines not equal to 0
   
   #### Screenshots
   
   
![image](https://user-images.githubusercontent.com/79460908/136375628-4484b621-13f5-4ab7-bff0-20863a961fdd.png)
   
   
![image](https://user-images.githubusercontent.com/79460908/136375819-7208f00b-5b08-4c28-9ef5-c3b57ba139b7.png)
   
   
   
   ### Environment
   
   (please complete the following information):
   
   - browser type and version: Google Chrome Version 94.0.4606.71 (Oficial 
build) (x86_64)
   - superset version: 1.3.0
   - python version: 3.7.9
   - node.js version: doesn't apply, I run on Kubernetes, using gunicorn as 
server
   - source : AWS Athena
   - any feature flags active: /
   
   ### Checklist
   
   Make sure to follow these steps before submitting your issue - thank you!
   
   - [ ] I have checked the superset logs for python stacktraces and included 
it here as text if there are any.
   - [ ] I have reproduced the issue with at least the latest released version 
of superset.
   - [ ] I have checked the issue tracker for the same issue and I haven't 
found one similar.
   
   ### Additional context
   
   Add any other context about the problem here.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to