powerbi - DAX - Last value in a Horizontal hierarchy -


having trouble replicating excel function dax.

say have below table(view image link). rows vary in depth , each row wanted know last value in hierarchy, use lookup e.g "=lookup(2,1/(xx:xx<>""),xx:xx)".

[image of table]

how 1 achieve in dax?

thanks.

i imagine combination of switch , isblank functions done. beware blank etc in dax bit unintuitive/inconsistent, e.g.

https://www.sqlbi.com/articles/blank-handling-in-dax/


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -