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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
DazBC
New Member

Table visual displaying zero (nil) values even when filtered value Is not 0.

I have a table visual that is displaying nil values even when the sum of amount is filtered to 0. I have reduced my data model to one table with the following headings Accounting Date, AccID, Control No and Amount. I am trying to filter the on AccID (one account number 03/01|130) and set the sum of Value filter to Is not 0.  
I duplicated the data set in Power Query and filtered all AccID out except for 03/01|130. When I do this and set the amount filter to Is not zero the visual displays correctly. 

 

Image with all AccID included 

 

DazBC_0-1711916768003.png

 

Image with only AccID 03/01|130

DazBC_1-1711916889291.png

I tried copying the pbix file across but says it is not supported (my first time using this forum).

DazBC_2-1711916971085.png

 

1 ACCEPTED SOLUTION

I managed to resolve it (with a little help from ChatGPT), thank you HotChilli for putting me on the right path, much appreciated.

 

In Power Query I change the type in my model to : 

= Table.TransformColumnTypes(#"Renamed Columns",{{"Amount", Currency.Type}})

View solution in original post

7 REPLIES 7
HotChilli
Super User
Super User

Thanks for the pbix.

I don't have time to give a full response but, initially, when I see these types of issues, I immediately think of the precision of decimal numbers and how they look in a visual compared to what their 'actual' values are.  0 is not always 0.00, sometimes it is 0.00000012, for example. (0.0000012 is not 0 hence the rows are not filtered out)

That is the reason the visual is showing you rows with 0 in them (you can prove that by increasing the number of decimal places (click on the amount field, go to the 'formatting' bar on the ribbon, it'll be set to Auto so put it to 8 or something and the values will appear).  <- edit (it actually has to be around 13 places)

So, you can fix it by using a currency / fixed decimal data type which will limit to 2 decimals and won't contain the tiny values.

--

I can have a look at the other visual later.  I expanded the decimal places and the values are coming through as 0.0000000 (which is equal to zero, so the rows WILL be filtered out).  So there will be a difference in the two queries which I don't have time to look at right now

I managed to resolve it (with a little help from ChatGPT), thank you HotChilli for putting me on the right path, much appreciated.

 

In Power Query I change the type in my model to : 

= Table.TransformColumnTypes(#"Renamed Columns",{{"Amount", Currency.Type}})

Thanks HotChilli. Yes, you are correct that it looks like a rounding issue and there are values up to 16 decimal places. 

 

However, I tried formatting this to a decimal value (2 decimals, Currency and a whole number) and it still does not exclude the zero values as suggested. Is there someting I should be doing in Power Query?

 

Appreciate the feedback.

 

DazBC_0-1711998863306.pngDazBC_1-1711998952624.png

DazBC_2-1711999113628.png

 

 

HotChilli
Super User
Super User

Post the pbix on a 3rd party site (a legitimate one please) and put the link here.  I'll have a look.

Thank you: Here you go  Test Table.pbix 

gmsamborn
Super User
Super User

Hi @DazBC 

 

Upload your pbix to OneDrive, GoogleDrive, WeTransfer, DropBox, etc and share the link (with permissions depending on platform).

 

 

Thank you: Here you go  Test Table.pbix 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.