Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
gluizqueiroz
Resolver I
Resolver I

Power BI Web update breaks visual that use calculated columns that use PATH/PATHITEM

I have a table that comes from SQL database.

Id_Employee | Id_ChiefEmployee | Name_Employee

 

Id_ChiefEmployee references Id_Employee

 

For the hierarchy, I use the following DAX:

 

Hierarchy = PATH(table1[Id_Employee]; table1[Id_ChiefEmployee])

The previous DAX creates for me the columns containing the hierarchy. For the name of chiefs, I use the following DAX:

 

Level1 = LOOKUPVALUE(table1[Name_Employee];table1[Id_Employee]; PATHITEM(table1[Hierarchy];1;TEXT))

Level2 = LOOKUPVALUE(table1[Name_Employee];table1[Id_Employee]; PATHITEM(table1[Hierarchy];2;TEXT))

The previous DAX creates 2 columns containing the names on a hierarchy.
On Power BI Desktop it works fine, when I refresh desktop, still working, when I publish, still working, but, when I referes by Power BI Web that visual breaks and show the following message:

 

The query referenced column 'table1'['Level 1'] which depends on another column, relationship or measure that is not in a valid state. Additional information: ''.

1 REPLY 1
v-yulgu-msft
Employee
Employee

Hi @gluizqueiroz,

 

I was not able to reproduce the same problem on my side.

 

In your scenario, please test:

  • Change data type of [Id_Employee] and [Id_ChiefEmployee] to whole number. Modify the [Level1] to below:
    Level1 = LOOKUPVALUE(table1[Name_Employee];table1[Id_Employee]; PATHITEM(table1[Hierarchy];1;INTEGER))
  • Remove [Level1] and [Level2], just test whether [Hierarchy] column used PATH function can be updated successfully on Power BI service.
  • Check whether there existing any error in "Applied Steps" in Query Editor.
  • Did you configure data gateway for this data source (SQL DB) to enable data refresh on service?

 

Besides, here is a similar thread for your reference: The query referenced column ****** which depends on another column

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors