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
Allow 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...LeonardGreene2 hours agoNew MemberNew6Views0likes0CommentsOpen Fabric notebooks in View‑only by default
Problem: Developers and reviewers with edit permissions frequently open notebooks for reading. Notebooks currently open in edit mode with autosave, which causes accidental changes and noisy version h...AMD07912 hours agoAdvocate IVNew334Views11likes1CommentService principal authentication support for data sources in Paginated(RDL) reports
We are only seeing two options(Basic, OAuth2) for data source authentication in a paginated report, Recently we see that the Service principal authentication enabled for Power BI(PBIX) reports, simi...Thatikonda_Vams2 hours agoNew MemberNew134Views6likes2CommentsMetadata-Driven Copy Job Control at Table and Column Level
We currently achieve metadata-driven table and column selection in Copy Data activities by using dynamic queries. This allows us to dynamically determine which tables and columns should be processed ...Motasim097 hours agoNew MemberNew6Views0likes0CommentsDynamic ForEach Parallel Batch Count Based on Runtime Capacity
We would like Microsoft Fabric Data Factory to support dynamic configuration of the ForEach activity's parallel batch count at runtime. Currently, the ForEach batchCount is effectively configured as...Motasim097 hours agoNew MemberNew4Views0likes0Comments