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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.