While executing a DAX query in a Fabric notebook, an error occurred. The query was intended to evaluate and select specific columns from the 'Inventory Item Coverage' table. The code snippet used is as follows:
query ="""
EVALUATE
SELECTCOLUMNS(
'Inventory Item Coverage',
"Minimum", 'Inventory Item Coverage'[Minimum],
"Maximum", 'Inventory Item Coverage'[Maximum] )
"""
df_inventory_coverage = fabric.evaluate_dax(query, workspace="ff252d1e-ac76-4df5-8a81-3ca36c28fb5f")
Also, I tried this code as well, it does not work:
query = """
EVALUATE
SELECTCOLUMNS(
'Inventory Item Coverage',
"Minimum", 'Inventory Item Coverage'[Minimum],
"Maximum", 'Inventory Item Coverage'[Maximum]
)
"""
df_inventory_coverage = fabric.evaluate_dax(query, workspace="ff252d1e-ac76-4df5-8a81-3ca36c28fb5f")]
Here is the error posted:
Can someone help me verify if the table name 'Inventory Item Coverage' and the columns 'Minimum' and 'Maximum' are correctly referenced in my DAX query? Thanks