Thank you for providing the revised formula. Unfortunately, it didn't work for me; it gave the following error.
It's OK, as the other two fomulas you gave are working. That's a grate help! Thank you.
Original Message:
Sent: Mon May 04, 2026 05:24 PM
From: Ivan C
Subject: PAfE and "trace" functionality
This is a more legible* version, with your parameters:
=IFERROR(
LET(DimCount,21,
dbrwcell,G4,
server,TEXTBEFORE(INDIRECT(TEXTBEFORE(TEXTAFTER(FORMULATEXT(dbrwcell),"("),",")),":"),
cube,INDEX(TEXTSPLIT(INDIRECT(TEXTBEFORE(TEXTAFTER(FORMULATEXT(dbrwcell),"("),",")),":"),2),
servercube,server&":"&cube,
dims,MAP(SEQUENCE(DimCount),LAMBDA(d,TABDIM(servercube,d))),
elements,MAP(TEXTSPLIT(TEXTBEFORE(TEXTAFTER(FORMULATEXT(dbrwcell),","),")"),,","),LAMBDA(dbrwcell,INDIRECT(dbrwcell))),
dims&": "&elements),
"")
Regards,
Ivan
*'more legible' still under debate
------------------------------
Ivan C
Revelwood
------------------------------
Original Message:
Sent: Mon May 04, 2026 05:11 PM
From: Vincent George
Subject: PAfE and "trace" functionality
Hi Ivan,
Thank you for sharing the formula. Unfortunately, it did not work for me, so I may be applying it incorrectly.
Could you please substitute my parameters into the formula so I can see where I might have gone wrong and understand how to get it working correctly?
DimCount = 21
servercube = Server Instance REGION_AM, Cube name FINANCE_AM
dbrwcell = target cell with the dbrw G4
Thank you.
Vincent
------------------------------
Vincent George
Original Message:
Sent: Sat May 02, 2026 02:56 PM
From: Ivan C
Subject: PAfE and "trace" functionality
Herman,
Try this:
=IFERROR(LET(DimCount,10,servercube,TM1PRIMARYDBNAME()&":Revenue",dbrwcell,K42,
MAP(SEQUENCE(DimCount),LAMBDA(d,TABDIM(servercube,d)&": "))&MAP(TEXTSPLIT(TEXTBEFORE(TEXTAFTER(FORMULATEXT(dbrwcell),","),")"),,","),LAMBDA(dbrwcell,INDIRECT(dbrwcell)))),"")
DimCount = number greater than the number of dimensions of the cube
servercube = cube name
dbrwcell = target cell with the dbrw
This will not work for DBRW cells with IF statements or other logic inside. The formula is expecting cell references.
Edit: This version calculates the server & cube name. Keep the DimCount a # larger than the cube then you only have to change the dbrwcell
=IFERROR(LET(DimCount,10,dbrwcell,K55,servercube,TEXTBEFORE(INDIRECT(TEXTBEFORE(TEXTAFTER(FORMULATEXT(dbrwcell),"("),",")),":")&":"&INDEX(TEXTSPLIT(INDIRECT(TEXTBEFORE(TEXTAFTER(FORMULATEXT(dbrwcell),"("),",")),":"),2),
MAP(SEQUENCE(DimCount),LAMBDA(d,TABDIM(servercube,d)&": "))&MAP(TEXTSPLIT(TEXTBEFORE(TEXTAFTER(FORMULATEXT(dbrwcell),","),")"),,","),LAMBDA(dbrwcell,INDIRECT(dbrwcell)))),"")
------------------------------
Ivan C
Revelwood
Original Message:
Sent: Fri May 01, 2026 03:33 AM
From: Herman Teeuwen
Subject: PAfE and "trace" functionality
Nice one Ivan, thanks for sharing.
These, using semicolon for a separator, worked for me:
Horizontal display:
=MAP(TEXTSPLIT(TEXTBEFORE(TEXTAFTER(FORMULATEXT(E2);"(");")");";");LAMBDA(CELL;INDIRECT(CELL)))
Vertical display:
=MAP(TEXTSPLIT(TEXTBEFORE(TEXTAFTER(FORMULATEXT(E2);"(");")");;";");LAMBDA(CELL;INDIRECT(CELL)))
The cool thing about the trace in "TM1 Tools" is that it automatically shows the dimensions of a cube in the correct order.
This make "debugging" formulas errors quite easy:
------------------------------
Herman Teeuwen
Canon Production Printing
Original Message:
Sent: Thu April 30, 2026 09:14 AM
From: Ivan C
Subject: PAfE and "trace" functionality
You can use this Excel function to parse DBRWs (instead of the formula bar). You'll need Excel 365. E2 is the cell with a DBRW
=MAP(TEXTSPLIT(TEXTBEFORE(TEXTAFTER(FORMULATEXT(E2),"("),")"),","),LAMBDA(cell,INDIRECT(cell)))
For semicolon separators:
=MAP(TEXTSPLIT(TEXTBEFORE(TEXTAFTER(FORMULATEXT(E2),"("),")"),";"),LAMBDA(cell,INDIRECT(cell)))
------------------------------
Ivan C