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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

Top Solution Authors