Comments (3)
Hi @QubitPi 👋 , Elide & Yavin supports all the functions your database supports (including aggregation). Here is an example from our demo config that uses sum
, case
, cast
, and replace
:
Not sure if you are looking to aggregate when calculating "speed", but this is an example I was able to create on our demo data without aggregation:
{
name: speed
friendlyName: Speed
category: Stats
type: Decimal
definition: '''
(cast (case when {{$duration}} like '% min' then REPLACE({{$duration}}, ' min', '') else '0' end AS INT)) / ( NULLIF( DATEDIFF( YEAR, PARSEDATETIME({{$release_year}}, 'yyyy'), PARSEDATETIME({{$date_added}}, 'yyyy') ), 0) )
'''
}
This takes the duration of a movie in minutes and divides it by the difference in years between the year it was available on netflix and the movie release year.
from framework.
Hi @jkusa, thank you very much for the prompt response. The movie example you provided really helped. With your hints, we can see the desired Yavin report with
{
name: speed
friendlyName: Speed
category: Stats
type: Decimal
definition: '''
{{$total_amount}} / ( NULLIF( DATEDIFF( DAY, PARSEDATETIME({{$task_start_date}}, 'yyyy-mm-dd'), PARSEDATETIME({{$task_finish_date}}, 'yyyy-mm-dd') ), 0) )
'''
}
This helps our team a lot! We will dive into Yavin and Elide docs to learn more. Thanks again!
from framework.
Issue resolved. Thanks
from framework.
Related Issues (20)
- Elide Namespace Support HOT 1
- rename `navi-{package}` to `@yavin-ui/{package}`
- Rename components/models/services/etc from navi-{name} to yavin/{name} HOT 4
- it happens when `exportFileTypes` includes `'csv'`
- Support non same-origin export service for gsheet-export
- Fili v2 Adapter doesn't serialize parameters for metric filters (having)
- We should add a cache to `naviDimension.all` HOT 1
- Share Link Is Incorrect After Saving a Report
- Allow admins to modify updatedOn date
- Contains filter value remove button has different appearance HOT 1
- Goal Gauge Settings Do Not Persist
- [Draft-RFC] Redesign Visualization API
- Replace navi-grey styles with denali-greys
- Dashboard dimension selector is not reactive to removing widgets
- Reference CID in sorts HOT 1
- Advanced date picker translates into incorrect range
- "Unsaved dashboard changes" dialog is not shown when navigating directly to a different dashboard
- Yavin Demo App Test are not passing HOT 4
- How does Yavin work with React JS? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from framework.