Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
What is represented by the value of the 't' attribute below? I need to build similar selectors, that doesn't seem to correspond to anything in the metadata for the related category. I'm trying to build a filter that lets you select different fields, then a value from the field, but createSelectionId() is creating selectors that filter across multiple fields which is not desired.
"{"selector":"{\"data\":[\"{\\\"comp\\\":{\\\"k\\\":0,\\\"l\\\":{\\\"col\\\":{\\\"s\\\":{\\\"e\\\":\\\"qtEmergencyRecords\\\"},\\\"r\\\":\\\"Year\\\"}},\\\"r\\\":{\\\"const\\\":{\\\"t\\\":4,\\\"v\\\":2017}}}}\"]}","highlight":false}"
Thanks for clarifying that it's a captured selector string from a Power BI visual interaction.
The t attribute inside the JSON ("t":4) typically represents the data type of the constant value. In Power BI's internal selector system:
t:1 is usually text/string
t:2 is boolean
t:3 is decimal/float
t:4 is integer
So "t":4, "v":2017 means you're filtering the Year column by the integer value 2017.
If you want to dive deeper into how selectors and JSON structures work for filtering and visualization, I recommend checking out some detailed tutorials and tools at @https://artdrivethru.com/json-formatter . They have useful resources on JSON formatting and selector logic that might help with your project.
For your use case, make sure to construct the createSelectionId() call carefully to target just one field at a time to avoid unwanted cross-field filtering.
Hope this helps!
First please format and validate your JSON data using
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 10 | |
| 10 | |
| 4 | |
| 3 | |
| 3 |