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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Microsoft Employee
Microsoft 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

v-evelk
Microsoft Employee
Microsoft Employee

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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

Top Solution Authors
Top Kudoed Authors