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

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

Reply
maruthisp
Super User
Super User

Calculate the Measures

Hi Everyone,
Good Morning! I am newbie to DAX and struggling to derive the below scenario and would like to ask for help in this Power BI Forum. Below is the sample table structure and sample data how it looks and Measure Business logics to derive.
I have a table with columns as below:

IDDepartmentInventoryDateDecommisonDateStatus
111A1/01/202330/01/2023Approved
222A

1/02/2023

 

 New
333A

1/03/2023

 

 Awaiting
444B1/01/2023 New
666B1/02/2023 New
777B1/02/202328/02/2023Approved
888B1/03/2023 Awaiting

 

Sample Output with more months data just to check how the graph looks. From JAN-23 towards rest of the months, values will be decreasing and graph chart should be going to down.

MonthDep-ADep-B
Jan-2313846
Feb-2314048
Mar-2313847
Apr-2313847
May-2313847
Jun-2313647
Jul-2313647
Aug-2313647
Sep-2313643
Oct-2313643
Nov-2313643
Dec-2313443

Above Final Output to display in the chart as below:

maruthisp_0-1678365104410.png

 

My requirements are below for DAX calculations is:


So for Feb figures above:
Measure-1:
month = max(month([Inventory Date])) - 1
start_inventory = count(*) where [C7 Status] <> "3. Awaiting Approval" group by [Department]

For subsequent months:

Measure-2:
month = previous month + 1
inventory = start_inventory - (count(*) where [C7 Status] <> "3. Awaiting Approval" and [Decommission Date] <= current_month group by [Department])

 

Please let me know if any further details and thanks in advance.
Best Regards,

MaruthiSP

0 REPLIES 0

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.