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

Win a FREE 3 Day Ticket to FabCon Vienna. Apply now

Reply
asdf1608
Helper V
Helper V

Running_Sum in power BI

How to get this calculated fields in power BI

iif(sum([column1])>0,RUNNING_SUM(SUM([column1])), NULL)

 

I am not able to get iif and running_Sum in poewr BI DAX

 

Help in this is needed. 

 

Thanks in advance

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @asdf1608 ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data.  

vtangjiemsft_0-1681267504739.png

 

(2) We can create a measure. 

Measure = IF(SUM('Table'[Column1])>0,CALCULATE(SUM('Table'[Column1]),FILTER(ALLSELECTED('Table'),'Table'[Column1])),BLANK())

(3) Then the result is as follows.

vtangjiemsft_1-1681267552197.png

You can refer to the similar posts that may be helpful to you:

Tableau to Power BI: Running Total and Other Running Calculations - DataVeld

 Calculating % of Total Running Sum along Table (Ac... - Microsoft Power BI Community

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

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

2 REPLIES 2
Anonymous
Not applicable

Hi @asdf1608 ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data.  

vtangjiemsft_0-1681267504739.png

 

(2) We can create a measure. 

Measure = IF(SUM('Table'[Column1])>0,CALCULATE(SUM('Table'[Column1]),FILTER(ALLSELECTED('Table'),'Table'[Column1])),BLANK())

(3) Then the result is as follows.

vtangjiemsft_1-1681267552197.png

You can refer to the similar posts that may be helpful to you:

Tableau to Power BI: Running Total and Other Running Calculations - DataVeld

 Calculating % of Total Running Sum along Table (Ac... - Microsoft Power BI Community

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

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

rautaniket0077
Resolver I
Resolver I

please provide more details along with sample data.

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.