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
tobkres
Helper II
Helper II

Need help with a formula

I need to create a formula that summarize numbers in table based on column text i decide.

 

This is my table

tobkres_1-1662974496925.png

I want it to do this:

 

accountNumber = 5520 summarize "amountInBaseCurrency"

 

This should take all 5520 cells in "accountNumber" and summarize the value in "amountInBaseCurrency"

Any idea how i can do that?

The output would be sum of all values in "amountInBaseCurrency", but only those that have 5520 in "accountNumber" 

 

All help is appreciated.

Thanks

 

6 REPLIES 6
tobkres
Helper II
Helper II

I just did some more testing, and it seems like it works if i set "accountNumber" to format as TEXT - but that does not look logically correct to me, as account number is a "number"?

 

Is there a way i can format it in the function, without having to format the whole table?

tobkres
Helper II
Helper II

It is very strange i think. As the formula looks correct to me.

tobkres
Helper II
Helper II

I set them both to whole numbers as the formatting

tobkres_2-1663058864383.png

tobkres_3-1663058880071.png

 

tobkres
Helper II
Helper II

Hmm. There's an error.

tobkres_1-1663058512752.png

 

 

Karthik12
Helper V
Helper V

@tobkres I hope it will work with "account number in normal slicer" and "account balance" in card visual.

 

PowerUserR
Solution Supplier
Solution Supplier

Hi, let's see if this works:
Calculate(sum('Table'[amountInBaseCurrency]),FILTER('Table', 'Table'[accountNumber] = "5520"))

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.