How do i add additional rows in M QUERY - powerbi

I want to add more rows using the Query editor (Power query/ M Query) in only the Start Date and End Date column:
+----------+------------------+--------------+-----------+-------------+------------+
| Employee | Booking Type | Jobs | WorkLoad% | Start Date | End date |
+----------+------------------+--------------+-----------+-------------+------------+
| John | Chargeable | CNS | 20 | 04/02/2020 | 31/03/2020 |
| John | Chargeable | CNS | 20 | 04/03/2020 | 27/04/2020 |
| Bernard | Vacation/Holiday | SN | 100 | 30/04/2020 | 11/05/2020 |
| Bernard | Vacation/Holiday | Annual leave | 100 | 23/01/2020 | 24/02/2020 |
| Bernard | Chargeable | Tech PLC | 50 | 29/02/2020 | 30/03/2020 |
+----------+------------------+--------------+-----------+-------------+------------+
I want to find the MIN(Start Date) and MAX(End Date) and then append the range of start to end dates to this table only in the Start Date and End Date column in the Query Editor (Power Query/ M Query). Preferrable if I can create another table2 duplicating the original table and append these rows.
For example:
+----------+------------------+--------------+-----------+-------------+------------+
| Employee | Booking Type | Jobs | WorkLoad% | Start Date | End date |
+----------+------------------+--------------+-----------+-------------+------------+
| John | Chargeable | CNS | 20 | 04/02/2020 | 31/03/2020 |
| John | Chargeable | CNS | 20 | 04/03/2020 | 27/04/2020 |
| Bernard | Vacation/Holiday | SN | 100 | 30/04/2020 | 11/05/2020 |
| Bernard | Vacation/Holiday | Annual leave | 100 | 23/01/2020 | 24/02/2020 |
| Bernard | Chargeable | Tech PLC | 50 | 29/02/2020 | 30/03/2020 |
| | | | | 23/01/2020 | 23/01/2020 |
| | | | | 24/01/2020 | 24/01/2020 |
| | | | | 25/01/2020 | 25/01/2020 |
| | | | | 26/01/2020 | 26/01/2020 |
| | | | | 27/01/2020 | 27/01/2020 |
| | | | | 28/01/2020 | 28/01/2020 |
| | | | | 29/01/2020 | 29/01/2020 |
| | | | | 30/01/2020 | 30/01/2020 |
| | | | | 31/01/2020 | 31/01/2020 |
| | | | | ... | ... |
| | | | | 11/05/2020 | 11/05/2020 |
+----------+------------------+--------------+-----------+-------------+------------+

The List.Dates function is pretty useful here.
Generate the dates in your range, duplicate that to two columns and then append.
let
StartDate = List.Min(StartTable[Start Date]),
EndDate = List.Max(StartTable[End Date]),
DateList = List.Dates(StartDate, Duration.Days(EndDate - StartDate), #duration(1,0,0,0)),
DateCols = Table.FromColumns({DateList, DateList}, {"Start Date", "End Date"}),
AppendDates = Table.Combine({StartTable, DateCols})
in
AppendDates

Related

Opening Stock Value In Powerbi

I am working on Cost of goods sold using Powerbi.
https://www.mediafire.com/file/pmb7u1thsag1kq1/Cost+of+goods+sold.pbix/file
Above is my file which i uploaded on mediafire.
i am taking the average price by using average function year wise.
If you see in File.
| GName | Year | Opening Stock | InQty | OutQty | InItemValue | Average Value | Closing Stock | Closing Stock Value | Opening Stock Value | Cost of Goods Sold |
|-------------|------|---------------|-------|--------|-------------|---------------|---------------|---------------------|---------------------|--------------------|
| Bahria Town | 2016 | | 4454 | 3586 | 126610299.8 | 28426.20113 | 868 | 24673942.58 | 0 | 101936357.2 |
| Bahria Town | 2017 | 868 | 6379 | 6547 | 166903971.5 | 23030.76743 | 700 | 16121537.2 | 0 | 150782434.3 |
| Bahria Town | 2018 | 700 | 9129 | 8709 | 271932546.3 | 27666.3492 | 1120 | 30986311.11 | 0 | 240946235.2 |
| Bahria Town | 2019 | 1120 | 9333 | 9393 | 313226466.8 | 29965.22212 | 1060 | 31763135.45 | 0 | 281463331.4 |
| Bahria Town | 2020 | 1060 | 10192 | 10136 | 362950101.2 | 32256.49673 | 1116 | 35998250.35 | 0 | 326951850.8 |
| Bahria Town | 2021 | 987 | 8882 | 8468 | 404199067.4 | 40956.43605 | 1530 | 62663347.16 | 0 | 346819100.5 |
In Above as you can see i just took the Average Value
Average Value = ([Opening Stock Value]+[initemvaluee])/([inqtyy]+[Opening Stock])
and closing stock value
Closing Stock Value = [Average Value] * [Closing Stock]
When i calculate the closing stock value of previous year its give me error.
circular dependency was detected: Measure: 'mak_stockInHandValue'[Average Value], Measure: 'mak_stockInHandValue'[Opening Stock Value], Measure: 'mak_stockInHandValue'[Average Value].
Any Suggestion to see the closing stock value in the field of opening stock value ?????
I am working on this from more than 2 weeks.
Please help me out
Thanks in advance

Query array column in BigQuery by condition

I have a table in Bigquery with this format:
+------------+-----------------+------------+-----------------+---------------------------------+
| event_date | event_timestamp | event_name | event_params.key| event_params.value.string_value |
+------------+-----------------+------------+-----------------+---------------------------------+
| 20201110 | 2929929292 | my_event | previous_page | /some-page |
+------------+-----------------+------------+-----------------+---------------------------------+
| | layer | /some-page/layer |
| +-----------------+---------------------------------+
| | session_id | 99292 |
| +-----------------+---------------------------------+
| | user._id | 2929292 |
+------------+-----------------+------------+-----------------+---------------------------------+
| 20201110 | 2882829292 | my_event | previous_page | /some-page |
+------------+-----------------+------------+-----------------+---------------------------------+
| | layer | /some-page/layer |
| +-----------------+---------------------------------+
| | session_id | 29292 |
| +-----------------+---------------------------------+
| | user_id | 229292 |
+-------------------------------------------+-----------------+---------------------------------+
I want to perform a query to get all rows where event_params.value.string_value contains the regex /layer.
I have tried this:
SELECT
"event_params.value.string_value",
FROM `my_project.my_dataset.my_events_20210110`,
UNNEST(event_params) AS event_param
WHERE event_param.key = 'layer' AND
REGEXP_CONTAINS(event_param.value.string_value, r'/layer')
LIMIT 100
But I'm getting this output:
+---------------------------------+
| event_params.value.string_value |
+---------------------------------+
| event_params.value.string_value |
+---------------------------------+
| event_params.value.string_value |
+---------------------------------+
| event_params.value.string_value |
+---------------------------------+
| event_params.value.string_value |
+---------------------------------+
Some ideas of what I'm doing wrong?
You are selecting a string - you should select a column.
The other problem is that you're cross joining the table with its arrays - effectively bloating up the table.
Your solution is to use a subquery in the WHERE clause:
SELECT
* -- Not sure what you actually need from the table ...
FROM `my_project.my_dataset.my_events_20210110`
WHERE
-- COUNT(*)>0 means "if you find more than zero" then return TRUE
(SELECT COUNT(*)>0 FROM UNNEST(event_params) AS event_param
WHERE event_param.key = 'layer' AND
REGEXP_CONTAINS(event_param.value.string_value, r'/layer')
)
LIMIT 100
If you actually want the values from the array your quick solution is removing the quotes:
SELECT
event_params.value.string_value
FROM `my_project.my_dataset.my_events_20210110`,
UNNEST(event_params) AS event_param
WHERE event_param.key = 'layer' AND
REGEXP_CONTAINS(event_param.value.string_value, r'/layer')
LIMIT 100

Calculate Total by specific column, then apply column total to each row

I would like to apply the total count('case_id'), while grouping by the Item.
This was my previous ask DAX Measure to calculate aggregate data, but group by Case ID. This gave me the total count('case_id') by sub_item.
Measure =
VAR datesSelection =
DATE(
YEAR(SELECTEDVALUE('Date Selection'[DateWoTime]))
,MONTH(SELECTEDVALUE('Date Selection'[DateWoTime]))
,DAY(SELECTEDVALUE('Date Selection'[DateWoTime]))
)
VAR devicesTotal =
CALCULATETABLE (
VALUES ( Outages[Sub_Item] ),
ALLSELECTED ( Outages ),
Outages[DATE] >= datesSelection,
VALUES ( Outages[Sub_Item] )
)
var counts =
CALCULATE (
COUNT( Outages[CASE_ID] ),
ALLSELECTED( Outages ),
Outages[Sub_Item] IN devicesTotal
)
return
counts
I'm getting this.
| Item | Sub_Item | TYPE | Case ID | Date | Measure |
|-------|----------|------|------------|------------------|---------|
| 701ML | abc | TFUS | 1312937981 | 7/16/19 7:18:00 | 1 |
| 702ML | abc | TFUS | 1312958225 | 7/16/19 11:13:00 | 1 |
| 702ML | abc1 | TFUS | 1312957505 | 7/16/19 11:03:00 | 1 |
| 702ML | abc2 | TFUS | 1312954287 | 7/16/19 10:24:00 | 1 |
| 702ML | abc3 | TFUS | 1312938599 | 7/16/19 7:28:00 | 1 |
| 702ML | abc4 | TFUS | 1290599620 | 5/25/18 15:43:00 | 2 |
| 702ML | abc4 | TFUS | 1312950297 | 7/16/19 9:43:00 | 2 |
| 708BI | abc | TFUS | 1312947288 | 7/16/19 9:13:00 | 1 |
| 712BI | abc | TFUS | 1312944078 | 7/16/19 8:30:00 | 1 |
| 785DL | abc | TFUS | 1312937536 | 7/16/19 7:12:00 | 1 |
| 786DL | abc | TFUS | 1312992583 | 7/16/19 14:59:00 | 1 |
| 791DI | abc | LFUS | 1289094627 | 4/28/18 20:07:00 | 2 |
| 791DI | abc | LFUS | 1312958972 | 7/16/19 11:17:00 | 2 |
| 791DI | abc1 | LFUS | 1313005237 | 7/16/19 14:00:00 | 2 |
| 791DI | abc2 | RCLR | 1290324328 | 5/22/18 15:36:00 | 2 |
| 841JU | abc | TFUS | 1312955016 | 7/16/19 10:32:00 | 1 |
| 841JU | abc1 | SBKR | 1288688911 | 4/15/18 10:09:56 | 2 |
| 841JU | abc1 | SBKR | 1312961007 | 7/16/19 11:46:24 | 2 |
| 871NI | abc2 | TFUS | 1304308511 | 3/24/19 19:13:00 | 2 |
| 871NI | abc | TFUS | 1313015455 | 7/16/19 18:39:00 | 2 |
| 917CN | abc | TFUS | 1312945831 | 7/16/19 8:58:00 | 1 |
| 918CN | abc | LFUS | 1292611263 | 6/30/18 9:41:00 | 2 |
| 918CN | abc | LFUS | 1313006283 | 7/16/19 17:03:00 | 2 |
| 922DU | abc | TFUS | 1312987081 | 7/16/19 14:20:00 | 1 |
| 922DU | abc1 | TFUS | 1313005803 | 7/16/19 17:04:00 | 1 |
| 922DU | abc2 | TFUS | 1313003541 | 7/16/19 16:42:00 | 1 |
| 931LF | abc | TFUS | 1312972165 | 7/16/19 12:46:00 | 1 |
When I would like to get this.
| Item | Sub_Item | TYPE | Case ID | Date | Measure |
|-------|----------|------|------------|-----------------|---------|
| 701ML | abc | TFUS | 1312937981 | 7/16/2019 7:18 | 1 |
| 702ML | abc | TFUS | 1312958225 | 7/16/2019 11:13 | 6 |
| 702ML | abc1 | TFUS | 1312957505 | 7/16/2019 11:03 | 6 |
| 702ML | abc2 | TFUS | 1312954287 | 7/16/2019 10:24 | 6 |
| 702ML | abc3 | TFUS | 1312938599 | 7/16/2019 7:28 | 6 |
| 702ML | abc4 | TFUS | 1290599620 | 5/25/2018 15:43 | 6 |
| 702ML | abc4 | TFUS | 1312950297 | 7/16/2019 9:43 | 6 |
| 708BI | abc | TFUS | 1312947288 | 7/16/2019 9:13 | 1 |
| 712BI | abc | TFUS | 1312944078 | 7/16/2019 8:30 | 1 |
| 785DL | abc | TFUS | 1312937536 | 7/16/2019 7:12 | 1 |
| 786DL | abc | TFUS | 1312992583 | 7/16/2019 14:59 | 1 |
| 791DI | abc | LFUS | 1289094627 | 4/28/2018 20:07 | 4 |
| 791DI | abc | LFUS | 1312958972 | 7/16/2019 11:17 | 4 |
| 791DI | abc1 | LFUS | 1313005237 | 7/16/2019 14:00 | 4 |
| 791DI | abc2 | RCLR | 1290324328 | 5/22/2018 15:36 | 4 |
| 841JU | abc | TFUS | 1312955016 | 7/16/2019 10:32 | 3 |
| 841JU | abc1 | SBKR | 1288688911 | 4/15/2018 10:09 | 3 |
| 841JU | abc1 | SBKR | 1312961007 | 7/16/2019 11:46 | 3 |
| 871NI | abc2 | TFUS | 1304308511 | 3/24/2019 19:13 | 2 |
| 871NI | abc | TFUS | 1313015455 | 7/16/2019 18:39 | 2 |
| 917CN | abc | TFUS | 1312945831 | 7/16/2019 8:58 | 1 |
| 918CN | abc | LFUS | 1292611263 | 6/30/2018 9:41 | 2 |
| 918CN | abc | LFUS | 1313006283 | 7/16/2019 17:03 | 2 |
| 922DU | abc | TFUS | 1312987081 | 7/16/2019 14:20 | 3 |
| 922DU | abc1 | TFUS | 1313005803 | 7/16/2019 17:04 | 3 |
| 922DU | abc2 | TFUS | 1313003541 | 7/16/2019 16:42 | 3 |
| 931LF | abc | TFUS | 1312972165 | 7/16/2019 12:46 | 1 |
You need to specify what level you are aggregating at in your measure. Currently, you are aggregating at the Sub_Item level.
To aggregate at the Item level, simply replace Sub_Item with Item in your measure.

Openedx Django how to remove a country from Country list?

I want to disable a country from country list of my register page ,settings or anywhere country is shown on My Openedx App (OpenEdx is a django based system). But i cannot find country list for removing the country . Where locate the countries? I need to remove it . Django uses django_countries.fields class
Those are my tables on mysql :
+------------------------------------------------------------------+
| Tables_in_edxapp |
+------------------------------------------------------------------+
| api_admin_apiaccessconfig |
| api_admin_apiaccessrequest |
| api_admin_historicalapiaccessrequest |
| assessment_aiclassifier |
| assessment_aiclassifierset |
| assessment_aigradingworkflow |
| assessment_aitrainingworkflow |
| assessment_aitrainingworkflow_training_examples |
| assessment_assessment |
| assessment_assessmentfeedback |
| assessment_assessmentfeedback_assessments |
| assessment_assessmentfeedback_options |
| assessment_assessmentfeedbackoption |
| assessment_assessmentpart |
| assessment_criterion |
| assessment_criterionoption |
| assessment_peerworkflow |
| assessment_peerworkflowitem |
| assessment_rubric |
| assessment_staffworkflow |
| assessment_studenttrainingworkflow |
| assessment_studenttrainingworkflowitem |
| assessment_trainingexample |
| assessment_trainingexample_options_selected |
| auth_group |
| auth_group_permissions |
| auth_permission |
| auth_registration |
| auth_user |
| auth_user_groups |
| auth_user_user_permissions |
| auth_userprofile |
| badges_badgeassertion |
| badges_badgeclass |
| badges_coursecompleteimageconfiguration |
| badges_courseeventbadgesconfiguration |
| block_structure |
| block_structure_config |
| bookmarks_bookmark |
| bookmarks_xblockcache |
| branding_brandingapiconfig |
| branding_brandinginfoconfig |
| bulk_email_bulkemailflag |
| bulk_email_cohorttarget |
| bulk_email_courseauthorization |
| bulk_email_courseemail |
| bulk_email_courseemail_targets |
| bulk_email_courseemailtemplate |
| bulk_email_coursemodetarget |
| bulk_email_optout |
| bulk_email_target |
| catalog_catalogintegration |
| celery_taskmeta |
| celery_tasksetmeta |
| celery_utils_chorddata |
| celery_utils_chorddata_completed_results |
| celery_utils_failedtask |
| certificates_certificategenerationconfiguration |
| certificates_certificategenerationcoursesetting |
| certificates_certificategenerationhistory |
| certificates_certificatehtmlviewconfiguration |
| certificates_certificateinvalidation |
| certificates_certificatetemplate |
| certificates_certificatetemplateasset |
| certificates_certificatewhitelist |
| certificates_examplecertificate |
| certificates_examplecertificateset |
| certificates_generatedcertificate |
| commerce_commerceconfiguration |
| contentserver_cdnuseragentsconfig |
| contentserver_courseassetcachettlconfig |
| contentstore_pushnotificationconfig |
| contentstore_videouploadconfig |
| cors_csrf_xdomainproxyconfiguration |
| corsheaders_corsmodel |
| course_action_state_coursererunstate |
| course_creators_coursecreator |
| course_groups_cohortmembership |
| course_groups_coursecohort |
| course_groups_coursecohortssettings |
| course_groups_courseusergroup |
| course_groups_courseusergroup_users |
| course_groups_courseusergrouppartitiongroup |
| course_groups_unregisteredlearnercohortassignments |
| course_modes_coursemode |
| course_modes_coursemodeexpirationconfig |
| course_modes_coursemodesarchive |
| course_overviews_courseoverview |
| course_overviews_courseoverviewimageconfig |
| course_overviews_courseoverviewimageset |
| course_overviews_courseoverviewtab |
| course_structures_coursestructure |
| courseware_offlinecomputedgrade |
| courseware_offlinecomputedgradelog |
| courseware_studentfieldoverride |
| courseware_studentmodule |
| courseware_studentmodulehistory |
| courseware_xmodulestudentinfofield |
| courseware_xmodulestudentprefsfield |
| courseware_xmoduleuserstatesummaryfield |
| crawlers_crawlersconfig |
| credentials_credentialsapiconfig |
| credit_creditconfig |
| credit_creditcourse |
| credit_crediteligibility |
| credit_creditprovider |
| credit_creditrequest |
| credit_creditrequirement |
| credit_creditrequirementstatus |
| credit_historicalcreditrequest |
| credit_historicalcreditrequirementstatus |
| dark_lang_darklangconfig |
| django_admin_log |
| django_comment_client_permission |
| django_comment_client_permission_roles |
| django_comment_client_role |
| django_comment_client_role_users |
| django_comment_common_coursediscussionsettings |
| django_comment_common_forumsconfig |
| django_content_type |
| django_migrations |
| django_openid_auth_association |
| django_openid_auth_nonce |
| django_openid_auth_useropenid |
| django_redirect |
| django_session |
| django_site |
| djcelery_crontabschedule |
| djcelery_intervalschedule |
| djcelery_periodictask |
| djcelery_periodictasks |
| djcelery_taskstate |
| djcelery_workerstate |
| edxval_coursevideo |
| edxval_encodedvideo |
| edxval_profile |
| edxval_subtitle |
| edxval_video |
| email_marketing_emailmarketingconfiguration |
| embargo_country |
| embargo_countryaccessrule |
| embargo_courseaccessrulehistory |
| embargo_embargoedcourse |
| embargo_embargoedstate |
| embargo_ipfilter |
| embargo_restrictedcourse |
| enterprise_enrollmentnotificationemailtemplate |
| enterprise_enterprisecourseenrollment |
| enterprise_enterprisecustomer |
| enterprise_enterprisecustomerbrandingconfiguration |
| enterprise_enterprisecustomerentitlement |
| enterprise_enterprisecustomeridentityprovider |
| enterprise_enterprisecustomeruser |
| enterprise_historicalenrollmentnotificationemailtemplate |
| enterprise_historicalenterprisecourseenrollment |
| enterprise_historicalenterprisecustomer |
| enterprise_historicalenterprisecustomerentitlement |
| enterprise_historicaluserdatasharingconsentaudit |
| enterprise_pendingenrollment |
| enterprise_pendingenterprisecustomeruser |
| enterprise_userdatasharingconsentaudit |
| experiments_experimentdata |
| experiments_experimentkeyvalue |
| external_auth_externalauthmap |
| grades_computegradessetting |
| grades_coursepersistentgradesflag |
| grades_persistentcoursegrade |
| grades_persistentgradesenabledflag |
| grades_persistentsubsectiongrade |
| grades_visibleblocks |
| instructor_task_gradereportsetting |
| instructor_task_instructortask |
| integrated_channel_enterpriseintegratedchannel |
| lms_xblock_xblockasidesconfig |
| microsite_configuration_historicalmicrositeorganizationmapping |
| microsite_configuration_historicalmicrositetemplate |
| microsite_configuration_microsite |
| microsite_configuration_micrositehistory |
| microsite_configuration_micrositeorganizationmapping |
| microsite_configuration_micrositetemplate |
| milestones_coursecontentmilestone |
| milestones_coursemilestone |
| milestones_milestone |
| milestones_milestonerelationshiptype |
| milestones_usermilestone |
| mobile_api_appversionconfig |
| mobile_api_ignoremobileavailableflagconfig |
| mobile_api_mobileapiconfig |
| notes_note |
| notify_notification |
| notify_notificationtype |
| notify_settings |
| notify_subscription |
| oauth2_accesstoken |
| oauth2_client |
| oauth2_grant |
| oauth2_provider_accesstoken |
| oauth2_provider_application |
| oauth2_provider_grant |
| oauth2_provider_refreshtoken |
| oauth2_provider_trustedclient |
| oauth2_refreshtoken |
| oauth_dispatch_restrictedapplication |
| oauth_provider_consumer |
| oauth_provider_nonce |
| oauth_provider_scope |
| oauth_provider_token |
| organizations_organization |
| organizations_organizationcourse |
| proctoring_proctoredexam |
| proctoring_proctoredexamreviewpolicy |
| proctoring_proctoredexamreviewpolicyhistory |
| proctoring_proctoredexamsoftwaresecurereview |
| proctoring_proctoredexamsoftwaresecurereviewhistory |
| proctoring_proctoredexamstudentallowance |
| proctoring_proctoredexamstudentallowancehistory |
| proctoring_proctoredexamstudentattempt |
| proctoring_proctoredexamstudentattemptcomment |
| proctoring_proctoredexamstudentattempthistory |
| programs_programsapiconfig |
| rss_proxy_whitelistedrssurl |
| sap_success_factors_catalogtransmissionaudit |
| sap_success_factors_historicalsapsuccessfactorsenterprisecus80ad |
| sap_success_factors_learnerdatatransmissionaudit |
| sap_success_factors_sapsuccessfactorsenterprisecustomerconfidb8a |
| sap_success_factors_sapsuccessfactorsglobalconfiguration |
| self_paced_selfpacedconfiguration |
| shoppingcart_certificateitem |
| shoppingcart_coupon |
| shoppingcart_couponredemption |
| shoppingcart_courseregcodeitem |
| shoppingcart_courseregcodeitemannotation |
| shoppingcart_courseregistrationcode |
| shoppingcart_courseregistrationcodeinvoiceitem |
| shoppingcart_donation |
| shoppingcart_donationconfiguration |
| shoppingcart_invoice |
| shoppingcart_invoicehistory |
| shoppingcart_invoiceitem |
| shoppingcart_invoicetransaction |
| shoppingcart_order |
| shoppingcart_orderitem |
| shoppingcart_paidcourseregistration |
| shoppingcart_paidcourseregistrationannotation |
| shoppingcart_registrationcoderedemption |
| site_configuration_siteconfiguration |
| site_configuration_siteconfigurationhistory |
| social_auth_association |
| social_auth_code |
| social_auth_nonce |
| social_auth_partial |
| social_auth_usersocialauth |
| splash_splashconfig |
| static_replace_assetbaseurlconfig |
| static_replace_assetexcludedextensionsconfig |
| status_coursemessage |
| status_globalstatusmessage |
| student_anonymoususerid |
| student_courseaccessrole |
| student_courseenrollment |
| student_courseenrollmentallowed |
| student_courseenrollmentattribute |
| student_dashboardconfiguration |
| student_enrollmentrefundconfiguration |
| student_entranceexamconfiguration |
| student_historicalcourseenrollment |
| student_languageproficiency |
| student_linkedinaddtoprofileconfiguration |
| student_loginfailures |
| student_logoutviewconfiguration |
| student_manualenrollmentaudit |
| student_passwordhistory |
| student_pendingemailchange |
| student_pendingnamechange |
| student_registrationcookieconfiguration |
| student_userattribute |
| student_usersignupsource |
| student_userstanding |
| student_usertestgroup |
| student_usertestgroup_users |
| submissions_score |
| submissions_scoreannotation |
| submissions_scoresummary |
| submissions_studentitem |
| submissions_submission |
| survey_surveyanswer |
| survey_surveyform |
| tagging_tagavailablevalues |
| tagging_tagcategories |
| teams_courseteam |
| teams_courseteammembership |
| theming_sitetheme |
| third_party_auth_ltiproviderconfig |
| third_party_auth_oauth2providerconfig |
| third_party_auth_providerapipermissions |
| third_party_auth_samlconfiguration |
| third_party_auth_samlproviderconfig |
| third_party_auth_samlproviderdata |
| thumbnail_kvstore |
| track_trackinglog |
| user_api_usercoursetag |
| user_api_userorgtag |
| user_api_userpreference |
| user_tasks_usertaskartifact |
| user_tasks_usertaskstatus |
| util_ratelimitconfiguration |
| verified_track_content_verifiedtrackcohortedcourse |
| verify_student_historicalverificationdeadline |
| verify_student_icrvstatusemailsconfiguration |
| verify_student_incoursereverificationconfiguration |
| verify_student_skippedreverification |
| verify_student_softwaresecurephotoverification |
| verify_student_verificationcheckpoint |
| verify_student_verificationcheckpoint_photo_verification |
| verify_student_verificationdeadline |
| verify_student_verificationstatus |
| video_config_coursehlsplaybackenabledflag |
| video_config_hlsplaybackenabledflag |
| waffle_flag |
| waffle_flag_groups |
| waffle_flag_users |
| waffle_sample |
| waffle_switch |
| waffle_utils_waffleflagcourseoverridemodel |
| wiki_article |
| wiki_articleforobject |
| wiki_articleplugin |
| wiki_articlerevision |
| wiki_attachment |
| wiki_attachmentrevision |
| wiki_image |
| wiki_imagerevision |
| wiki_reusableplugin |
| wiki_reusableplugin_articles |
| wiki_revisionplugin |
| wiki_revisionpluginrevision |
| wiki_simpleplugin |
| wiki_urlpath |
| workflow_assessmentworkflow |
| workflow_assessmentworkflowcancellation |
| workflow_assessmentworkflowstep |
| xblock_config_courseeditltifieldsenabledflag |
| xblock_config_studioconfig |
| xblock_django_xblockconfiguration |
| xblock_django_xblockstudioconfiguration |
| xblock_django_xblockstudioconfigurationflag |
+------------------------------------------------------------------+
346 rows in set (0.00 sec)
I have solv this problem!
This is the resource for all countries on openedx /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django_countries/data.py
You need to restart your services after this action.
Good Luck!

N-level tree structure in android implementation

I want to implement a N-level tree structure in android. I have gone through the ExpandableListView, but it is applicable for only 2 or 3 levels. My requirement is as below...
CAR
|
|==Toyota
| |
| |==Sedan
| | |
| | |==Camry
| | | |
| | | |==Manufacture year
| | | |==Body Colour
| | | | |
| | | | |==Black
| | | | |==Blue
| | | | |==Red
| | | |
| | | |==Alloy Wheels
| | | |==CD player
| | | |==Petrol/Diesel
| | |
| | |==Yaris
| | |
| | |==Manufacture year
| | |==Body Colour
| | | |
| | | |==Black
| | | |==Blue
| | | |==Red
| | |
| | |==Alloy Wheels
| | |==CD player
| | |==Petrol/Diesel
| |
| |==Hatch Pack
| | |
| | |==Yaris
| | |
| | |==Manufacture year
| | |==Body Colour
| | | |
| | | |==Black
| | | |==Blue
| | | |==Red
| | |
| | |==Alloy Wheels
| | |==CD player
| | |==Petrol/Diesel
| |
| |
| |
| |==Four Wheel Drive
|
|
|==Mazda
|
| This section will have
| same classification as above
|
|==Nissan
|
| This section will have
| same classification as above
|
|==Ferrari
|
| This section will have
| same classification as above
|
|==Hyundai
|
| This section will have
| same classification as above
|
Do you ppl have any suggestions to implement this in Android. A sample code would be more helpful. Thanks in advance.