Oct 13 2023 02:51 PM - edited Oct 15 2023 06:20 PM
I have multiple sheets in a workbook for teachers to record marks in tests students take. Students will progress through these tests at different rates and I want a summary of what test students are up to at any given time, when they achieved that result and what the result was (which is a percentage).
I am creating this sheet to be then imported and used in Power Bi as a dashboard for the school. Is this possible?
The last sheet titled Summary is what I would like returned from the other sheets in the workbook.
Oct 13 2023 06:18 PM
Oct 15 2023 06:22 PM
Oct 15 2023 09:13 PM
This is an ETL(Extract-Transform-Load) task.
I would like running sql to automate it.
//select rowid old_rowid,colIndex[1:19] from consolidateSheet;
create temp table aa as
select rowid old_rowid,colIndex[1:19] from consolidateSheet where f04!='Students';
cli_one_dim_with_zero~temp.aa~4;
create temp table cc as
with bb as (
select *,(cast(regexp2('\d+',属性) as int)-1)/2 grp from aaunion order by old_rowid)
select *,regreplace('(\d+)\/(\d+)\/(\d+)','20$3-$1-$2',group_concat(数量,'</td><td>')) Date_Result from bb group by old_rowid,grp;
cli_no_header;
select f03,f04,f02,Date_Result from cc;
You can find other ways to acheive it too.
Oct 16 2023 01:44 AM
In general that is job for Power Query, especially if you are going to publish summary on Power BI. With that it's better to keep file with subtests separately, perhaps even more better if each subtest is in separate file and all of them are kept in some folder, local one or on SharePoint.
Summary could be combined in another file by Power Query if you need such file, same query could be used to publish dashboard directly on Power BI site without intermediate Excel. You may schedule data refresh for that site with the dashboard. Thus, when done, the only job will be to update files with the subtests results.
Will try to make some mock-up bit later.
Oct 16 2023 02:24 AM
Oct 16 2023 02:45 AM
Power Query variant is in attached file
Oct 16 2023 02:58 AM
It all depends on which Excel version/platform you are and which Power BI subscription you and people who uses dashboard have - free or Pro.
Oct 16 2023 04:14 PM
Oct 16 2023 04:40 PM
Oct 16 2023 05:53 PM
Oct 19 2023 11:50 AM
It all depends on your business process. If you or someone else update results in the same file it could be done in separate sheets. If you copy/paste from another file it's more reasonable to use these other files as the source. It's also better from technology point of view.
Oct 19 2023 09:32 PM
Oct 20 2023 09:03 AM
In theory it shall work if you
1) Change the file path within dashboard Excel sheet on one where is you actual file with tests result
2) Sheet names with test results start from the works "Subtest" (case sensitive)
3) Each sheet has exactly the same structure and some number of columns as in sample file.
Otherwise, i.e. file is located on SharePoint site, sheet names have another logic or we select all sheets in such file; sheets have bit different structure - query shall be modified.
If you are not familiar with Power Query it's hard to say what exactly to do. In general in Power Query editor check step by step each query and correct what doesn't work.
Oct 20 2023 09:01 PM - edited Oct 21 2023 08:02 PM
Power Query variant attached. You should explain the logic to apply for cases like Carly Simon:
+ In the event where a Student has the same Result & Date in the same or in different Subset sheets, which record(s) should be reported
Same comments as Sergei re. Subset sheets consistency, names...
+ Data quality issues: some cells that are supposed to be empty actually contain space(s) ==> Unecessary query steps
How to use: In Param sheet update the Path to Excel file with Subtest sheets with yours then Refresh the query
Oct 23 2023 04:55 PM
Oct 23 2023 07:33 PM - edited Oct 23 2023 07:59 PM