dipsikha25 commited on
Commit
173ed21
·
verified ·
1 Parent(s): ebfa901

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -13
app.py CHANGED
@@ -292,24 +292,25 @@ def load_kpi_excel_mapping(excel_path: str):
292
  #}
293
 
294
  record = {
295
- 'KPI_Name': kpi_name,
296
- 'PowerBI Field/Measure': measure_name,
297
 
298
- 'definition':
299
- str(row.get('KPI_Definitions', '')).strip(),
300
 
301
- 'dax':
302
- str(row.get('KPI_DAX', '')).strip(),
303
 
304
- 'report_sources':
305
- sorted(set(report_sources)),
306
 
307
- 'extra_info':
308
- extra_info,
309
 
310
- 'row_ids':
311
- [int(idx)],
312
- }
 
 
 
313
 
314
  if kpi_name:
315
  add_record_to_mapping(mapping, normalize_loose(kpi_name), record)
 
292
  #}
293
 
294
  record = {
295
+ 'kpi_name': kpi_name,
 
296
 
297
+ 'measure_name': measure_name,
 
298
 
299
+ 'definition':
300
+ str(row.get('KPI_Definitions', '')).strip(),
301
 
302
+ 'dax':
303
+ str(row.get('KPI_DAX', '')).strip(),
304
 
305
+ 'report_sources':
306
+ sorted(set(report_sources)),
307
 
308
+ 'extra_info':
309
+ extra_info,
310
+
311
+ 'row_ids':
312
+ [int(idx)],
313
+ }
314
 
315
  if kpi_name:
316
  add_record_to_mapping(mapping, normalize_loose(kpi_name), record)