Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -292,24 +292,25 @@ def load_kpi_excel_mapping(excel_path: str):
|
|
| 292 |
#}
|
| 293 |
|
| 294 |
record = {
|
| 295 |
-
|
| 296 |
-
'PowerBI Field/Measure': measure_name,
|
| 297 |
|
| 298 |
-
|
| 299 |
-
str(row.get('KPI_Definitions', '')).strip(),
|
| 300 |
|
| 301 |
-
|
| 302 |
-
|
| 303 |
|
| 304 |
-
|
| 305 |
-
|
| 306 |
|
| 307 |
-
|
| 308 |
-
|
| 309 |
|
| 310 |
-
|
| 311 |
-
|
| 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)
|