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

Fabric Data Days Monthly is back. Join us on March 26th for two expert-led sessions on 1) Getting Started with Fabric IQ and 2) Mapping & Spacial Analytics in Fabric. Register now

Allow dax to have context of the visual its running in.

It would be really useful if every Visual came with an ID and that in Dax there was a function which could pull current ID of the visual it runs in.   

Within the formatting of the visual would be It's ID number automatically generated.  Then there would a function say VisualID() with following format: -

VisualID(ID of visual)

This could then be used to allow if\switch statements to execute based on visual they are in.  This would allow Measures to be created for example which change the title of a visual, without the need for multiple measures. (Or creating a table just to differentiate between each visual.) See code below as an example: -

Switch( True,
VisualID = 1, "Active Tickets",
VisualID = 2, "Closed Tickets",
VisualID = 3, "On Hold Tickets",
)

Status: New