Skip to content

Commit

Permalink
added video to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kovalsky committed Nov 13, 2024
1 parent 2240dea commit 61c49ab
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ If you encounter any issues, please [raise a bug](https://github.com/microsoft/s

If you have ideas for new features/functions, please [request a feature](https://github.com/microsoft/semantic-link-labs/issues/new?assignees=&labels=&projects=&template=feature_request.md&title=).

Check out the video below for an introduction to Semantic Link, Semantic Link Labs and demos of key features!

[![Semantic Link Labs Video](https://img.youtube.com/vi/LSoWDEZk9b0/0.jpg)](https://www.youtube.com/watch?v=LSoWDEZk9b0)

## Featured Scenarios
* Semantic Models
* [Migrating an import/DirectQuery semantic model to Direct Lake](https://github.com/microsoft/semantic-link-labs?tab=readme-ov-file#direct-lake-migration)
Expand Down
4 changes: 3 additions & 1 deletion src/sempy_labs/_model_bpa.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ def map_language(language, language_list):

# Do not run BPA for models with no tables
if tom.model.Tables.Count == 0:
print(f"{icons.warning} The '{dataset}' semantic model within the '{workspace}' workspace has no tables and therefore there are no valid BPA results.")
print(
f"{icons.warning} The '{dataset}' semantic model within the '{workspace}' workspace has no tables and therefore there are no valid BPA results."
)
finalDF = pd.DataFrame(
columns=[
"Category",
Expand Down
4 changes: 3 additions & 1 deletion src/sempy_labs/_vertipaq.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ def vertipaq_analyzer(
table_count = tom.model.Tables.Count
column_count = len(list(tom.all_columns()))
if table_count == 0:
print(f"{icons.warning} The '{dataset}' semantic model within the '{workspace}' workspace has no tables. Vertipaq Analyzer can only be run if the semantic model has tables.")
print(
f"{icons.warning} The '{dataset}' semantic model within the '{workspace}' workspace has no tables. Vertipaq Analyzer can only be run if the semantic model has tables."
)
return

dfT = list_tables(dataset=dataset, extended=True, workspace=workspace)
Expand Down
4 changes: 3 additions & 1 deletion src/sempy_labs/tom/_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2280,7 +2280,9 @@ def is_field_parameter(self, table_name: str):
return (
self.is_field_parameter(table_name=table_name)
and t.Columns.Count == 4
and any("NAMEOF(" in p.Source.Expression.replace(' ', '') for p in t.Partitions)
and any(
"NAMEOF(" in p.Source.Expression.replace(" ", "") for p in t.Partitions
)
and all(
"[Value" in c.SourceColumn
for c in t.Columns
Expand Down

0 comments on commit 61c49ab

Please sign in to comment.