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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
paolomint
Helper III
Helper III

No SUM for IF function

Dear all,

please have a look below.

I'm using a IF function and I don not understand why it works correctly but the total ammount of the row is zero and not the sum of all the values.

How can I fix this?

Thanks in advance.

Paolo

 

Cattura.JPG

1 ACCEPTED SOLUTION

Thank for your reply,

I need an if function because I need sum on different column.

Anyhow I solved in SQL. 

Bye

Paolo

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@paolomint , refer to a suggestion by @Anonymous , or you have force row level total like

 

new measure =

Sumx(Summarize(Table, Table[Year], Table[Month], "_1", [Your Measure]) , [_1])

 

https://www.youtube.com/watch?v=ufHOOLdi_jk

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi,
1- Show you complete dax function, also the refrenced measure.
2- Use Calculate function intead of if, to get the sum for filtered conditions, like this
calculate(sum('tablename'[columnname]),Condition 1 && Condition 2 ---------etc)

Thank for your reply,

I need an if function because I need sum on different column.

Anyhow I solved in SQL. 

Bye

Paolo

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.