semantic-link-labs 0.6.0__py3-none-any.whl → 0.7.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of semantic-link-labs might be problematic. Click here for more details.

Files changed (104) hide show
  1. semantic_link_labs-0.7.1.dist-info/METADATA +148 -0
  2. semantic_link_labs-0.7.1.dist-info/RECORD +111 -0
  3. {semantic_link_labs-0.6.0.dist-info → semantic_link_labs-0.7.1.dist-info}/WHEEL +1 -1
  4. sempy_labs/__init__.py +26 -2
  5. sempy_labs/_ai.py +3 -65
  6. sempy_labs/_bpa_translation/_translations_am-ET.po +828 -0
  7. sempy_labs/_bpa_translation/_translations_ar-AE.po +860 -0
  8. sempy_labs/_bpa_translation/_translations_cs-CZ.po +894 -0
  9. sempy_labs/_bpa_translation/_translations_da-DK.po +894 -0
  10. sempy_labs/_bpa_translation/_translations_de-DE.po +933 -0
  11. sempy_labs/_bpa_translation/_translations_el-GR.po +936 -0
  12. sempy_labs/_bpa_translation/_translations_es-ES.po +915 -0
  13. sempy_labs/_bpa_translation/_translations_fa-IR.po +883 -0
  14. sempy_labs/_bpa_translation/_translations_fr-FR.po +938 -0
  15. sempy_labs/_bpa_translation/_translations_ga-IE.po +912 -0
  16. sempy_labs/_bpa_translation/_translations_he-IL.po +855 -0
  17. sempy_labs/_bpa_translation/_translations_hi-IN.po +892 -0
  18. sempy_labs/_bpa_translation/_translations_hu-HU.po +910 -0
  19. sempy_labs/_bpa_translation/_translations_is-IS.po +887 -0
  20. sempy_labs/_bpa_translation/_translations_it-IT.po +931 -0
  21. sempy_labs/_bpa_translation/_translations_ja-JP.po +805 -0
  22. sempy_labs/_bpa_translation/_translations_nl-NL.po +924 -0
  23. sempy_labs/_bpa_translation/_translations_pl-PL.po +913 -0
  24. sempy_labs/_bpa_translation/_translations_pt-BR.po +909 -0
  25. sempy_labs/_bpa_translation/_translations_pt-PT.po +904 -0
  26. sempy_labs/_bpa_translation/_translations_ru-RU.po +909 -0
  27. sempy_labs/_bpa_translation/_translations_ta-IN.po +922 -0
  28. sempy_labs/_bpa_translation/_translations_te-IN.po +896 -0
  29. sempy_labs/_bpa_translation/_translations_th-TH.po +873 -0
  30. sempy_labs/_bpa_translation/_translations_zh-CN.po +767 -0
  31. sempy_labs/_bpa_translation/_translations_zu-ZA.po +916 -0
  32. sempy_labs/_clear_cache.py +9 -4
  33. sempy_labs/_generate_semantic_model.py +30 -56
  34. sempy_labs/_helper_functions.py +361 -14
  35. sempy_labs/_icons.py +10 -1
  36. sempy_labs/_list_functions.py +539 -260
  37. sempy_labs/_model_bpa.py +194 -18
  38. sempy_labs/_model_bpa_bulk.py +367 -0
  39. sempy_labs/_model_bpa_rules.py +19 -8
  40. sempy_labs/_model_dependencies.py +12 -10
  41. sempy_labs/_one_lake_integration.py +7 -7
  42. sempy_labs/_query_scale_out.py +61 -96
  43. sempy_labs/_refresh_semantic_model.py +7 -0
  44. sempy_labs/_translations.py +154 -1
  45. sempy_labs/_vertipaq.py +103 -90
  46. sempy_labs/directlake/__init__.py +5 -1
  47. sempy_labs/directlake/_directlake_schema_compare.py +27 -31
  48. sempy_labs/directlake/_directlake_schema_sync.py +55 -66
  49. sempy_labs/directlake/_dl_helper.py +233 -0
  50. sempy_labs/directlake/_get_directlake_lakehouse.py +6 -7
  51. sempy_labs/directlake/_get_shared_expression.py +1 -1
  52. sempy_labs/directlake/_guardrails.py +17 -13
  53. sempy_labs/directlake/_update_directlake_partition_entity.py +54 -30
  54. sempy_labs/directlake/_warm_cache.py +1 -1
  55. sempy_labs/lakehouse/__init__.py +2 -0
  56. sempy_labs/lakehouse/_get_lakehouse_tables.py +61 -69
  57. sempy_labs/lakehouse/_lakehouse.py +66 -9
  58. sempy_labs/lakehouse/_shortcuts.py +1 -1
  59. sempy_labs/migration/_create_pqt_file.py +174 -182
  60. sempy_labs/migration/_migrate_calctables_to_lakehouse.py +236 -268
  61. sempy_labs/migration/_migrate_calctables_to_semantic_model.py +75 -73
  62. sempy_labs/migration/_migrate_model_objects_to_semantic_model.py +442 -426
  63. sempy_labs/migration/_migrate_tables_columns_to_semantic_model.py +91 -97
  64. sempy_labs/migration/_refresh_calc_tables.py +92 -101
  65. sempy_labs/report/_BPAReportTemplate.json +232 -0
  66. sempy_labs/report/__init__.py +6 -2
  67. sempy_labs/report/_bpareporttemplate/.pbi/localSettings.json +9 -0
  68. sempy_labs/report/_bpareporttemplate/.platform +11 -0
  69. sempy_labs/report/_bpareporttemplate/StaticResources/SharedResources/BaseThemes/CY24SU06.json +710 -0
  70. sempy_labs/report/_bpareporttemplate/definition/pages/01d72098bda5055bd500/page.json +11 -0
  71. sempy_labs/report/_bpareporttemplate/definition/pages/01d72098bda5055bd500/visuals/1b08bce3bebabb0a27a8/visual.json +191 -0
  72. sempy_labs/report/_bpareporttemplate/definition/pages/01d72098bda5055bd500/visuals/2f22ddb70c301693c165/visual.json +438 -0
  73. sempy_labs/report/_bpareporttemplate/definition/pages/01d72098bda5055bd500/visuals/3b1182230aa6c600b43a/visual.json +127 -0
  74. sempy_labs/report/_bpareporttemplate/definition/pages/01d72098bda5055bd500/visuals/58577ba6380c69891500/visual.json +576 -0
  75. sempy_labs/report/_bpareporttemplate/definition/pages/01d72098bda5055bd500/visuals/a2a8fa5028b3b776c96c/visual.json +207 -0
  76. sempy_labs/report/_bpareporttemplate/definition/pages/01d72098bda5055bd500/visuals/adfd47ef30652707b987/visual.json +506 -0
  77. sempy_labs/report/_bpareporttemplate/definition/pages/01d72098bda5055bd500/visuals/b6a80ee459e716e170b1/visual.json +127 -0
  78. sempy_labs/report/_bpareporttemplate/definition/pages/01d72098bda5055bd500/visuals/ce3130a721c020cc3d81/visual.json +513 -0
  79. sempy_labs/report/_bpareporttemplate/definition/pages/92735ae19b31712208ad/page.json +8 -0
  80. sempy_labs/report/_bpareporttemplate/definition/pages/92735ae19b31712208ad/visuals/66e60dfb526437cd78d1/visual.json +112 -0
  81. sempy_labs/report/_bpareporttemplate/definition/pages/c597da16dc7e63222a82/page.json +11 -0
  82. sempy_labs/report/_bpareporttemplate/definition/pages/c597da16dc7e63222a82/visuals/07deb8bce824e1be37d7/visual.json +513 -0
  83. sempy_labs/report/_bpareporttemplate/definition/pages/c597da16dc7e63222a82/visuals/0b1c68838818b32ad03b/visual.json +352 -0
  84. sempy_labs/report/_bpareporttemplate/definition/pages/c597da16dc7e63222a82/visuals/0c171de9d2683d10b930/visual.json +37 -0
  85. sempy_labs/report/_bpareporttemplate/definition/pages/c597da16dc7e63222a82/visuals/0efa01be0510e40a645e/visual.json +542 -0
  86. sempy_labs/report/_bpareporttemplate/definition/pages/c597da16dc7e63222a82/visuals/6bf2f0eb830ab53cc668/visual.json +221 -0
  87. sempy_labs/report/_bpareporttemplate/definition/pages/c597da16dc7e63222a82/visuals/88d8141cb8500b60030c/visual.json +127 -0
  88. sempy_labs/report/_bpareporttemplate/definition/pages/c597da16dc7e63222a82/visuals/a753273590beed656a03/visual.json +576 -0
  89. sempy_labs/report/_bpareporttemplate/definition/pages/c597da16dc7e63222a82/visuals/b8fdc82cddd61ac447bc/visual.json +127 -0
  90. sempy_labs/report/_bpareporttemplate/definition/pages/d37dce724a0ccc30044b/page.json +9 -0
  91. sempy_labs/report/_bpareporttemplate/definition/pages/d37dce724a0ccc30044b/visuals/ce8532a7e25020271077/visual.json +38 -0
  92. sempy_labs/report/_bpareporttemplate/definition/pages/pages.json +10 -0
  93. sempy_labs/report/_bpareporttemplate/definition/report.json +176 -0
  94. sempy_labs/report/_bpareporttemplate/definition/version.json +4 -0
  95. sempy_labs/report/_bpareporttemplate/definition.pbir +14 -0
  96. sempy_labs/report/_generate_report.py +255 -139
  97. sempy_labs/report/_report_functions.py +26 -33
  98. sempy_labs/report/_report_rebind.py +31 -26
  99. sempy_labs/tom/_model.py +75 -58
  100. semantic_link_labs-0.6.0.dist-info/METADATA +0 -22
  101. semantic_link_labs-0.6.0.dist-info/RECORD +0 -54
  102. sempy_labs/directlake/_fallback.py +0 -60
  103. {semantic_link_labs-0.6.0.dist-info → semantic_link_labs-0.7.1.dist-info}/LICENSE +0 -0
  104. {semantic_link_labs-0.6.0.dist-info → semantic_link_labs-0.7.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,542 @@
1
+ {
2
+ "$schema": "https://developer.microsoft.com/json-schemas/fabric/item/report/definition/visualContainer/1.1.0/schema.json",
3
+ "name": "0efa01be0510e40a645e",
4
+ "position": {
5
+ "x": 433.13859755569041,
6
+ "y": 404.736066568432,
7
+ "z": 6000,
8
+ "height": 305.32720811302767,
9
+ "width": 835.03441102539659,
10
+ "tabOrder": 6000
11
+ },
12
+ "visual": {
13
+ "visualType": "pivotTable",
14
+ "query": {
15
+ "queryState": {
16
+ "Rows": {
17
+ "projections": [
18
+ {
19
+ "field": {
20
+ "Column": {
21
+ "Expression": {
22
+ "SourceRef": {
23
+ "Entity": "BPAResults"
24
+ }
25
+ },
26
+ "Property": "Model"
27
+ }
28
+ },
29
+ "queryRef": "BPAResults.Model Name",
30
+ "nativeQueryRef": "Model",
31
+ "active": true
32
+ },
33
+ {
34
+ "field": {
35
+ "Column": {
36
+ "Expression": {
37
+ "SourceRef": {
38
+ "Entity": "BPAResults"
39
+ }
40
+ },
41
+ "Property": "Category"
42
+ }
43
+ },
44
+ "queryRef": "BPAResults.Category",
45
+ "nativeQueryRef": "Category",
46
+ "active": true
47
+ },
48
+ {
49
+ "field": {
50
+ "Column": {
51
+ "Expression": {
52
+ "SourceRef": {
53
+ "Entity": "BPAResults"
54
+ }
55
+ },
56
+ "Property": "Rule Name"
57
+ }
58
+ },
59
+ "queryRef": "BPAResults.Rule Name",
60
+ "nativeQueryRef": "RuleName",
61
+ "active": true
62
+ },
63
+ {
64
+ "field": {
65
+ "Column": {
66
+ "Expression": {
67
+ "SourceRef": {
68
+ "Entity": "BPAResults"
69
+ }
70
+ },
71
+ "Property": "Object Type"
72
+ }
73
+ },
74
+ "queryRef": "BPAResults.Object Type",
75
+ "nativeQueryRef": "Object Type",
76
+ "active": false
77
+ },
78
+ {
79
+ "field": {
80
+ "Column": {
81
+ "Expression": {
82
+ "SourceRef": {
83
+ "Entity": "BPAResults"
84
+ }
85
+ },
86
+ "Property": "Object Name"
87
+ }
88
+ },
89
+ "queryRef": "BPAResults.Object Name",
90
+ "nativeQueryRef": "Object Name",
91
+ "active": false
92
+ }
93
+ ]
94
+ },
95
+ "Values": {
96
+ "projections": [
97
+ {
98
+ "field": {
99
+ "Measure": {
100
+ "Expression": {
101
+ "SourceRef": {
102
+ "Entity": "BPAResults"
103
+ }
104
+ },
105
+ "Property": "Rule Severity"
106
+ }
107
+ },
108
+ "queryRef": "BPAResults.Sev",
109
+ "nativeQueryRef": "Sev"
110
+ },
111
+ {
112
+ "field": {
113
+ "Measure": {
114
+ "Expression": {
115
+ "SourceRef": {
116
+ "Entity": "BPAResults"
117
+ }
118
+ },
119
+ "Property": "Violations"
120
+ }
121
+ },
122
+ "queryRef": "BPAResults.Violations",
123
+ "nativeQueryRef": "Violations"
124
+ }
125
+ ]
126
+ }
127
+ },
128
+ "sortDefinition": {
129
+ "sort": [
130
+ {
131
+ "field": {
132
+ "Column": {
133
+ "Expression": {
134
+ "SourceRef": {
135
+ "Entity": "BPAResults"
136
+ }
137
+ },
138
+ "Property": "Model"
139
+ }
140
+ },
141
+ "direction": "Ascending"
142
+ }
143
+ ]
144
+ }
145
+ },
146
+ "expansionStates": [
147
+ {
148
+ "roles": [
149
+ "Rows"
150
+ ],
151
+ "levels": [
152
+ {
153
+ "queryRefs": [
154
+ "BPAResults.Model Name"
155
+ ],
156
+ "isCollapsed": true,
157
+ "identityKeys": [
158
+ {
159
+ "Column": {
160
+ "Expression": {
161
+ "SourceRef": {
162
+ "Entity": "BPAResults"
163
+ }
164
+ },
165
+ "Property": "Model"
166
+ }
167
+ }
168
+ ],
169
+ "isPinned": true
170
+ },
171
+ {
172
+ "queryRefs": [
173
+ "BPAResults.Category"
174
+ ],
175
+ "isCollapsed": true,
176
+ "identityKeys": [
177
+ {
178
+ "Column": {
179
+ "Expression": {
180
+ "SourceRef": {
181
+ "Entity": "BPAResults"
182
+ }
183
+ },
184
+ "Property": "Category"
185
+ }
186
+ }
187
+ ],
188
+ "isPinned": true
189
+ },
190
+ {
191
+ "queryRefs": [
192
+ "BPAResults.Rule Name"
193
+ ],
194
+ "isCollapsed": true,
195
+ "identityKeys": [
196
+ {
197
+ "Column": {
198
+ "Expression": {
199
+ "SourceRef": {
200
+ "Entity": "BPAResults"
201
+ }
202
+ },
203
+ "Property": "Rule Name"
204
+ }
205
+ }
206
+ ],
207
+ "isPinned": true
208
+ },
209
+ {
210
+ "queryRefs": [
211
+ "BPAResults.Object Type"
212
+ ],
213
+ "isCollapsed": true,
214
+ "identityKeys": [
215
+ {
216
+ "Column": {
217
+ "Expression": {
218
+ "SourceRef": {
219
+ "Entity": "BPAResults"
220
+ }
221
+ },
222
+ "Property": "Object Type"
223
+ }
224
+ }
225
+ ],
226
+ "isPinned": true
227
+ },
228
+ {
229
+ "queryRefs": [
230
+ "BPAResults.Object Name"
231
+ ],
232
+ "isCollapsed": true,
233
+ "identityKeys": [
234
+ {
235
+ "Column": {
236
+ "Expression": {
237
+ "SourceRef": {
238
+ "Entity": "BPAResults"
239
+ }
240
+ },
241
+ "Property": "Object Name"
242
+ }
243
+ }
244
+ ],
245
+ "isPinned": true
246
+ }
247
+ ],
248
+ "root": {
249
+ "children": [
250
+ {
251
+ "identityValues": [
252
+ {
253
+ "Literal": {
254
+ "Value": "'MigrationTest'"
255
+ }
256
+ }
257
+ ],
258
+ "isToggled": true,
259
+ "children": [
260
+ {
261
+ "identityValues": [
262
+ {
263
+ "Literal": {
264
+ "Value": "'Performance'"
265
+ }
266
+ }
267
+ ],
268
+ "isToggled": true,
269
+ "children": [
270
+ {
271
+ "identityValues": [
272
+ {
273
+ "Literal": {
274
+ "Value": "'Consider a star-schema instead of a snowflake architecture'"
275
+ }
276
+ }
277
+ ],
278
+ "children": [
279
+ {
280
+ "identityValues": [
281
+ {
282
+ "Literal": {
283
+ "Value": "'Table'"
284
+ }
285
+ }
286
+ ],
287
+ "isToggled": true
288
+ }
289
+ ]
290
+ }
291
+ ]
292
+ }
293
+ ]
294
+ },
295
+ {
296
+ "identityValues": [
297
+ {
298
+ "Literal": {
299
+ "Value": "'AdvWorks'"
300
+ }
301
+ }
302
+ ],
303
+ "isToggled": true,
304
+ "children": [
305
+ {
306
+ "identityValues": [
307
+ {
308
+ "Literal": {
309
+ "Value": "'DAX Expressions'"
310
+ }
311
+ }
312
+ ],
313
+ "children": [
314
+ {
315
+ "identityValues": [
316
+ {
317
+ "Literal": {
318
+ "Value": "'Column references should be fully qualified'"
319
+ }
320
+ }
321
+ ],
322
+ "isToggled": true,
323
+ "children": [
324
+ {
325
+ "identityValues": [
326
+ {
327
+ "Literal": {
328
+ "Value": "'Measure'"
329
+ }
330
+ }
331
+ ],
332
+ "isToggled": true
333
+ }
334
+ ]
335
+ },
336
+ {
337
+ "identityValues": [
338
+ {
339
+ "Literal": {
340
+ "Value": "'Measure references should be unqualified'"
341
+ }
342
+ }
343
+ ],
344
+ "children": [
345
+ {
346
+ "identityValues": [
347
+ {
348
+ "Literal": {
349
+ "Value": "'Measure'"
350
+ }
351
+ }
352
+ ],
353
+ "isToggled": true
354
+ }
355
+ ]
356
+ }
357
+ ]
358
+ }
359
+ ]
360
+ }
361
+ ]
362
+ }
363
+ }
364
+ ],
365
+ "objects": {
366
+ "columnWidth": [
367
+ {
368
+ "properties": {
369
+ "value": {
370
+ "expr": {
371
+ "Literal": {
372
+ "Value": "140.39478374000865D"
373
+ }
374
+ }
375
+ }
376
+ },
377
+ "selector": {
378
+ "metadata": "BPAResults.RuleCategory"
379
+ }
380
+ },
381
+ {
382
+ "properties": {
383
+ "value": {
384
+ "expr": {
385
+ "Literal": {
386
+ "Value": "560.6163412819568D"
387
+ }
388
+ }
389
+ }
390
+ },
391
+ "selector": {
392
+ "metadata": "BPAResults.RuleName"
393
+ }
394
+ },
395
+ {
396
+ "properties": {
397
+ "value": {
398
+ "expr": {
399
+ "Literal": {
400
+ "Value": "589.4619042856642D"
401
+ }
402
+ }
403
+ }
404
+ },
405
+ "selector": {
406
+ "metadata": "BPAResults.Model Name"
407
+ }
408
+ }
409
+ ],
410
+ "columnHeaders": [
411
+ {
412
+ "properties": {
413
+ "fontSize": {
414
+ "expr": {
415
+ "Literal": {
416
+ "Value": "13D"
417
+ }
418
+ }
419
+ }
420
+ }
421
+ }
422
+ ],
423
+ "values": [
424
+ {
425
+ "properties": {
426
+ "fontSize": {
427
+ "expr": {
428
+ "Literal": {
429
+ "Value": "12D"
430
+ }
431
+ }
432
+ }
433
+ }
434
+ }
435
+ ],
436
+ "subTotals": [
437
+ {
438
+ "properties": {
439
+ "fontSize": {
440
+ "expr": {
441
+ "Literal": {
442
+ "Value": "14D"
443
+ }
444
+ }
445
+ }
446
+ },
447
+ "selector": {
448
+ "id": "Column"
449
+ }
450
+ }
451
+ ],
452
+ "rowHeaders": [
453
+ {
454
+ "properties": {
455
+ "fontSize": {
456
+ "expr": {
457
+ "Literal": {
458
+ "Value": "12D"
459
+ }
460
+ }
461
+ }
462
+ }
463
+ }
464
+ ]
465
+ },
466
+ "visualContainerObjects": {
467
+ "border": [
468
+ {
469
+ "properties": {
470
+ "show": {
471
+ "expr": {
472
+ "Literal": {
473
+ "Value": "true"
474
+ }
475
+ }
476
+ },
477
+ "color": {
478
+ "solid": {
479
+ "color": {
480
+ "expr": {
481
+ "ThemeDataColor": {
482
+ "ColorId": 0,
483
+ "Percent": 0
484
+ }
485
+ }
486
+ }
487
+ }
488
+ },
489
+ "radius": {
490
+ "expr": {
491
+ "Literal": {
492
+ "Value": "20D"
493
+ }
494
+ }
495
+ }
496
+ }
497
+ }
498
+ ],
499
+ "visualTooltip": [
500
+ {
501
+ "properties": {
502
+ "show": {
503
+ "expr": {
504
+ "Literal": {
505
+ "Value": "true"
506
+ }
507
+ }
508
+ },
509
+ "type": {
510
+ "expr": {
511
+ "Literal": {
512
+ "Value": "'Canvas'"
513
+ }
514
+ }
515
+ },
516
+ "section": {
517
+ "expr": {
518
+ "Literal": {
519
+ "Value": "'d37dce724a0ccc30044b'"
520
+ }
521
+ }
522
+ }
523
+ }
524
+ }
525
+ ],
526
+ "dropShadow": [
527
+ {
528
+ "properties": {
529
+ "show": {
530
+ "expr": {
531
+ "Literal": {
532
+ "Value": "true"
533
+ }
534
+ }
535
+ }
536
+ }
537
+ }
538
+ ]
539
+ },
540
+ "drillFilterOtherVisuals": true
541
+ }
542
+ }