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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
gabrielvoz
New Member

Substituir células vazias de um matriz pelo valor 0

Seria ótimo se existisse a opção de substituir as células vazias de uma matriz pelo valor 0, pois muitas vezes quando uma matriz é alimentada por uma Query, algumas células ficam vazias e isso acaba gerando dúvidas nas pessoas que vizualizam o realtórios por não saberem do que se trata essas células vazias.

4 REPLIES 4
v-evelk
Employee
Employee

Hello,

 

Do you mean core Matrix visual of Power BI?

Could you please provide some screenshots to better understand your issue?

 

Kind Regards,

Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
pbicvsupport@microsoft.com

 

exemplo.png

Esse é o resultado de minha matriz em que os dados estão vindo de uma consulta sql, após cruzar os dados os campos vazios não apresentam nenhum valor, assim como na imagem, o meu desejo é que ao invès do campo ficar vazio, apresentace valor 0 de forma automática.

Ok, got it!

I will ask an appropriate team for comments and provide answer here as son as I receive it.

 

Kind Regards,

Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
pbicvsupport@microsoft.com

The feature is in a visual backlog but there isn't any ETA regarding when it will be implemented.

 

However, there is a following workaround that was provided by developers:

 

"The most common workaround is to update your measure to avoid blanks or create a new calc column that turns blanks into zero.

https://community.powerbi.com/t5/Desktop/show-items-with-no-data-as-0-instead-of-blanks/td-p/113160

 

New column:

MeasureNoBlanks =
IF (
    CALCULATE ( SUM ( Expenses[Actual] ) ) = BLANK (),
    0,
    CALCULATE ( SUM ( Expenses[Actual] ) )
)

 

Updated Measure (+ 0):

Measure = CALCULATE ( SUM (table[column] ), FILTER (... ) ) + 0

"

 

I hope, that it will help.

 

Kind Regards,

Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
pbicvsupport@microsoft.com

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors