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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Silex_BI
Frequent Visitor

Running total by category

Hi,

 

This is probably an easy one but I'm stumped.

I have a inventory transaction table that record inventory movements.

Silex_BI_0-1658585032191.png

 

I have created a measure that calculate the inventory position by date (running total) which works fine:

Silex_BI_1-1658585144242.png

 

However, as soon as I try to add detail in my table (such as transaction type), the logic breaks:

 

Silex_BI_2-1658585192311.png

 

Does anyone have a clue how to fix this?

Thanks a lot!!!

 

 

3 ACCEPTED SOLUTIONS
SpartaBI
Community Champion
Community Champion

@Silex_BI Add to your calculate another statement:
CALCULATE(
...
...,
REMOVEFILTERS('Table'[Transaction Type])
)


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Showcase Report – Contoso By SpartaBI

View solution in original post

@Silex_BI if you want you can PM me now and we could do a quick zoom

View solution in original post

@Silex_BI check that you put the right column from the right table.

View solution in original post

4 REPLIES 4
SpartaBI
Community Champion
Community Champion

@Silex_BI Add to your calculate another statement:
CALCULATE(
...
...,
REMOVEFILTERS('Table'[Transaction Type])
)


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Showcase Report – Contoso By SpartaBI

Hi @SpartaBI,
Thank you for your answer, unfortunately it doesn't seem to solve it:

Silex_BI_0-1658589825685.png

 

Any idea why?

@Silex_BI if you want you can PM me now and we could do a quick zoom

@Silex_BI check that you put the right column from the right table.

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.