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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Inventory days calculation

Need to calculate Inventory and  Debtor days through DAX based on calculations given in below image.

 

Please help!Inventory.PNG

3 REPLIES 3
Cmcmahan
Resident Rockstar
Resident Rockstar

So then what's the question? Just how to get the last 12 months of Revenue?  All of the questions?  The formulas are basically given to you in the image.

 

Is revenue pre-calculated for you, or do you have daily data and need to get the monthly total before averaging those amounts?

 

The general formula for the past 12 months would be something like this:

X = CALCULATE( AVERAGE( 'Data'[Monthly Net]), PREVIOUSYEAR( TODAY() ))
Anonymous
Not applicable

Need your support in creating DAX for X, Y and Z.

 

I have created following measures for X and Y. However, they are not giving correct values. Is there any problem with these measures?

 

X.PNGY.PNG

It looks generally correct.  At this point it mostly depends on how your data model is set up. Could you share the .pbix file you're using?

 

If not, an example data set and actual/expected output would be helpful.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors