Thank you for pointing that out.
My explanation was incorrect.
In reality, the issue was that the values returned as a result of the following `Group By` query were in uppercase, causing them to mismatch with the matching data prepared on the Python side.
SELECT revenutype, sum(total) from xxx group by revenuetype
# Revenue types and their row positions in RevenueByRevenueType
REVENUE_ROWS = {
‘License’: 5,
‘Maintenance’: 6,
‘Subscription’: 7,
‘Training’: 8,
}
- Log in to post comments