Forum Discussion

MariaPereira1's avatar
MariaPereira1
New Member
4 days ago

Gráfico de barras agrupadas

Boa tarde,
no dashboard que estou a desenvolver no BI Desktop criei um gráfico de barras agrupadas em que as cores das barras são aplicadas através de uma formula DAX.
Contudo, quando faço a publicação para o BI Service esse mesmo gráfico aparece com as cores de origem do BI e não com as que estão definidas no desktop.
Quando tento entrar pelo fabric e alterar diretamente, não assume a formula dax, isto é não acontece nada.
alguém sabe o porquê deste comportamento e como solucionar?
Obrigada

1 Reply

  • Hi,

    This may be related to how conditional formatting is configured for the chart.

    I would suggest checking the following:

    1. In Power BI Desktop, go to Format visual → Bars/Colors → fx and confirm that the DAX measure is selected under Format style: Field value.
    2. Make sure the DAX measure returns a valid color value, such as #FF0000, and not blank or an invalid color name.
    3. Save the report and publish it again, choosing Replace when prompted.
    4. Open the report in Power BI Service and check whether the conditional formatting is applied.

    If it still shows the default colors, try opening the report in Desktop, removing and reapplying the conditional formatting, and publishing again.

    Also, make sure you are editing the report itself in the Service, rather than trying to apply the DAX formula directly in Fabric. DAX measures and visual formatting should be configured in the appropriate report or semantic model editor.

    If the issue persists, check whether the same behavior occurs with a simple test measure that returns a fixed hex color.

    Hope this helps!!

    Thanks!