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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Vilmar
Resolver I
Resolver I

Valor Formatado No Gráfico

Olá,

A medida formatada abaixo funciona em uma tabela, mas não em um grafico. Tem alguma forma de corrigir isso?

 

Medida = 
SWITCH (
    TRUE (),
    AND ( [Receita] >= 1000, [Receita] < 1000000 ), FORMAT ( [Receita] / 1000, "#K" ),
    AND ( [Receita] >= 1000000, [Receita] < 1000000000 ), FORMAT ( [Receita] / 1000000, "#M" ))

 

Vilmar_0-1627951523214.png

 

 

5 REPLIES 5
v-yetao1-msft
Community Support
Community Support

Hi @Vilmar 

You can change the units for all the bars not for one of them . The units of all values must be the same .

Ailsamsft_0-1628559515639.pngAilsamsft_1-1628559515643.png

Best Regards

Community Support Team _ Ailsa Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-yetao1-msft
Community Support
Community Support

Hi @Vilmar 

I don't quite understand what you mean by staying on the label of the icon ? Show the value on the bar graph ? If this is the case, just turn on the Data Label option in Visual Format function.

Ailsamsft_0-1628486786036.pngAilsamsft_1-1628486786038.png

Best Regards

Community Support Team _ Ailsa Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-yetao1-msft é quase isso, mas repare que em 2021 o valor é 0,52M e não 524K

 

Sem título1.png

v-yetao1-msft
Community Support
Community Support

Hi @Vilmar 

Is this the result you want ? The column [Medida] I created is a calculated column with the formula you provided ,and I put it in Legend in Column Chart .

Ailsamsft_0-1628128813701.pngAilsamsft_1-1628128813704.png

Best Regards

Community Support Team _ Ailsa Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-yetao1-msft obrigado pela resposta.

 

Mas preciso que fique no rotulo no grafico.

 

Sem título.png

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.