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
Digger
Post Patron
Post Patron

Sum by different columns

I need get sum by ID and by PAYMENTS_ID

 

But measures return same result

Sum_EUR = SUM(Table[eur])

 

 

ID = SUMX (
VALUES(Table[id])
,[Sum_EUR]
)

PAYMENTS_ID =
SUMX (
VALUES(Table[payment_id])
,[Sum_EUR]
)
3 REPLIES 3
hashtag_pete
Helper V
Helper V

Hello Digger, 

not quite sure how your data looks, but if your ID is made of ID- numbers, and you do not want to sum those values without an ID, you can use this code:

Sum_ID =
CALCULATE([Sum_EUR],
Tabelle[ID] <> ""
)
 
amitchandak
Super User
Super User

@Digger , Not clear what you want. If they is not context used in [Sum_EUR], it will be same for both formula 

i want sums by different columns, as column id have all sums, but other column has half of them because have a lot of blanks

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.