You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/04/09 10:35:24 UTC

[GitHub] [incubator-superset] kaspergaj opened a new issue #7253: Fraction with static metric in denominator and dynamic metric in numerator.

kaspergaj opened a new issue #7253: Fraction with static metric in denominator and dynamic metric in numerator.
URL: https://github.com/apache/incubator-superset/issues/7253
 
 
   <!--
   Licensed to the Apache Software Foundation (ASF) under one
   or more contributor license agreements.  See the NOTICE file
   distributed with this work for additional information
   regarding copyright ownership.  The ASF licenses this file
   to you under the Apache License, Version 2.0 (the
   "License"); you may not use this file except in compliance
   with the License.  You may obtain a copy of the License at
   
     http://www.apache.org/licenses/LICENSE-2.0
   
   Unless required by applicable law or agreed to in writing,
   software distributed under the License is distributed on an
   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
   KIND, either express or implied.  See the License for the
   specific language governing permissions and limitations
   under the License.
   -->
   Make sure these boxes are checked 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.
   - [x ] I have reproduced the issue with at least the latest released version of superset.
   - [x ] I have checked the issue tracker for the same issue and I haven't found one similar.
   
   
   I want to make a chart where the value in the numerator can be chosen by a filter box while the denominator is fixed for any choice in the filter box. 
   
   Here I defined the static denominator as a metric in the datasource
   ![image](https://user-images.githubusercontent.com/49437254/55793174-96b35080-5ac2-11e9-966a-ea56e1755b7d.png)
   
   Here is what I imagine the metric should be defined
   ![image](https://user-images.githubusercontent.com/49437254/55793454-396bcf00-5ac3-11e9-9cc9-4c48ce6701d2.png)
   
   The user is then supposed to choose values in the list of "H-kode" by a filter box.
   
   ### Expected results
   If the user chooses "H02" or "H05" the value should be positive otherwise 0.
   
   ### Actual results
   I get no values in the bar chart. If I choose either the numerator or the denominator seperately, then I get the individual numbers in the format that I wish, but when i put them in the same metric I get an empty chart.
   
   ### Steps to reproduce
   - Define metric in datasource
   - Define metric in the cart that partially depends on the first metric.
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org