Forum Discussion
Tittle
Howdy everyone, I want to create a dynamic title base on the hierarchy and a selected measure. As you can see I have a slicer where I select the measure I wanna show.
The visual I am using is a simple waterfall.
- Usado = SUMX(FILTER(Capex_DB,Capex_DB[Categoria]="USADO"),Capex_DB[Value])
- Disponible = SUMX(FILTER(Capex_DB,Capex_DB[Categoria]="Disponible"),Capex_DB[Value])
I want to create a dax formula that take the Field I am currently in and concatenate with "Disponible" or "Usado". Depends on which on is selected.
Expected title would like: "Monto Disponible by Vicepresidencia" or "Monto Usado by Sociedad"
So far I just came up with the following dax formula but I am still clueless regarding how to retrieve the "Category" I am in.
2 Replies
- amitchandak
Super User
Anonymous , Try to use in isincope.
Title measure =
Switch ( True() ,
isincope(Table[Pals]) && Not(isinscopeTable[Scoiedad]))&& Not(isinscopeTable[Scoiedad])) , "Pals",
//Add others
)
https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/
- AnonymousNot applicable
amitchandak It didn't work u.u