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
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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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