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
herbemischung
Resolver I
Resolver I

Remove 0 from balance list

Hi,

 

I created a balance list. like that:

 

account no. / balance

12345 / 50€

12346 / 70€

12347 / 0€

12348 / -15€

 

I want to remove all account numbers with a blance of 0

Im that case the 0 of the account no 12347 consists of the following cases:

1.1. Invoice +50€

5.1. Payment -50€

 

So, if I filter balance (is not 0) then nothing happens because on row level there is no 0.

 

I want to exclude all Account Numbers if the sum of balance (invoice + / payment-) equals 0

 

And I have absolutely no clue how to do that! Hope you guys are smarter 😉 

thanks!

 

all the best, herbert

1 ACCEPTED SOLUTION

Hi @herbemischung ,

 

Maybe you can refer to the following method.

I constructed such a table.

xxx5.PNG

Then, I created a calculated table.

Table = 
SUMMARIZE(
    Sheet1,
    Sheet1[account no.],
    "Balance", SUM(Sheet1[balance] )
)

xxx6.PNG

 

Best regards,
Lionel Chen

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

 

View solution in original post

8 REPLIES 8
v-lionel-msft
Community Support
Community Support

Hi @herbemischung ,

 

You need to sum up the flow of each account first, so that you can determine which account balance is 0.
Please give a sample data.

 

Best regards,
Lionel Chen

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

Hi, unfortunately I am not allowed to provide our company data

I wonder if it would be possible to create a dynamic table.

Something like groupby. Table = groupby([Daten] (account number), [Daten], (Sales Amount) --> I know that this is not accurate 😉

 

I imagine a Table that is grouped by "account number" and "sales amount" but dynamic in terms of Time.

 

Hi @herbemischung ,

 

Has your problem been solved?

 

Best regards,
Lionel Chen

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

yeah, but the main problem was that there have been values like 0,0000002 - I really don't know how that was even possible, but, all the zeros I thought are wrong havent been zeros at all. Thats why everything failed

Hi @herbemischung ,

 

Maybe you can refer to the following method.

I constructed such a table.

xxx5.PNG

Then, I created a calculated table.

Table = 
SUMMARIZE(
    Sheet1,
    Sheet1[account no.],
    "Balance", SUM(Sheet1[balance] )
)

xxx6.PNG

 

Best regards,
Lionel Chen

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

 

amitchandak
Super User
Super User

@herbemischung , can you share formula you are using

calculate(sum(Table[balance]),filter(Table,Table[balance]<>0))

Thank you, but it didn't work like that. I still had a lot of Zeros.

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.