It would be very useful to be able to reference theme colors from DAX for use in measures that provide a custom color to a visual.
So that if the theme is changed, no additional work is needed to edit DAX formulas that use colors from the theme.
This could be similar to the js colorPalette API for visuals - e.g.
COLORPALETTE(key) returns the hex color code from the current palette, with the standard keys from ISandboxExtendedColorPalette in visuals-api.d.ts
e.g. I would like a particular background colour for a slicer if there is a selection, but to use the theme colour if not.
I would be able do this using a measure for the the background colour with something like this:
MyField_SlicerBackground = IF(ISFILTERED(MyField), COLORPALETTE("selection"), COLORPALETTE("backgroundNeutral"))
1 Comment
- fbcideas_migusrNew MemberStatus added:New
Recent ideas
**BUG** Please fix web model editor UI not working with role-playing dimensions
A key part of complex semantic models is the ability to reuse tables for scenarios like role-playing dimensions (e.g., Date table for DOB, Date table for SalesDate). I've specifically run into this w...arpost1 hour agoPost ProdigyNew3Views0likes0Comments- fbcideas_migusr1 hour agoNew MemberNew323Views9likes3Comments
Favorites, recent fields and field groups in the Data pane (large models)
On big models the Data pane is a pain. Search helps, but you keep searching the same stuff again and again. And when a lot of fields have almost the same name (UN, UN METAS, UN_corr, UNIDAD_NEGOCIO…)...WildAnalyst1 hour agoNew MemberNew2Views0likes0CommentsAllow Workspace Admins to View Power BI Semantic Model Configuration Without Requiring Take Over
a { text-decoration: none; color: #464feb; } tr th, tr td { border: 1px solid #e6e6e6; } tr th { background-color: #f5f5f5; } Description As a Power BI Workspace Administrator, I understand why own...LeonardGreene4 hours agoNew MemberNew7Views0likes0Comments