Showing results for 
Search instead for 
Did you mean: 
New Member

Count as 1 as long as running total greater than zero

Hello Community


I do have a little problem and don't know how to solve it.

As long as the running total per lot is greater than zero, we would like to count as one (pallet).

Unfortunately, I haven't found any solution yet.

Here is my example:



The Lot No CHARGE0405 should be counted as 1 until March 25.
So in total, overall the 420 pieces there should be counted:
Lot CHARGE0000013568 as 1 (140 pieces)
Lot CHARGE0000013567 as 1 (140 pieces)
Lot CHARGE0000013566 as 1 (140 pieces

Can you give me any advice how I can solve it with the logic of DAX and time intelligence?

Thanks for your support!

Kind regards



Helpful resources

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors