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
Tuvdata
Frequent Visitor

Inventory turnover SQL query and DAX (confused)

Hello everyone. 

 

I am having an issue on "Inventory turnover" "Average inventory" dashboards. We are have both direct query and import mode available. I am not sure what your SQL source table looks like and what codes do you write on DAX to see inventory turnover? 

I did research a lot about inventory turnover on PowerBI from internet. But i couldnt find one with inventory SQL query. 

 

Please feel free to ask anything if my question is not clear enough for you. 

 

Any suggestion, example would be deeply appreciated.

Thank you

 

Edit: We use SAP for our sales and WH record. 
Edit: Sorry. i dont have any example file or image because I have almost nothing done regarding to inventory turnover. 

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @Tuvdata 

First, connect to SAP with Power BI Desktop, select the correct database and table from SAP,

https://docs.microsoft.com/en-us/power-bi/desktop-sap-bw-connector

 

Second, create relationships among tables in Power BI,

https://docs.microsoft.com/en-us/power-bi/desktop-relationships-understand

 

Next, create measures/calculated columns in Power BI,

https://docs.microsoft.com/en-us/power-bi/desktop-tutorial-create-measures

https://docs.microsoft.com/en-us/power-bi/desktop-tutorial-create-calculated-columns

For your scenario, please refer to the following article:

https://www.sqlbi.com/articles/inventory-in-power-pivot-and-dax-snapshot-vs-dynamic-calculation/

 

Finally, create visuals on reports pages to display your results.

https://docs.microsoft.com/en-us/power-bi/visuals/power-bi-report-visualizations

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

4 REPLIES 4
v-juanli-msft
Community Support
Community Support

Hi @Tuvdata 

First, connect to SAP with Power BI Desktop, select the correct database and table from SAP,

https://docs.microsoft.com/en-us/power-bi/desktop-sap-bw-connector

 

Second, create relationships among tables in Power BI,

https://docs.microsoft.com/en-us/power-bi/desktop-relationships-understand

 

Next, create measures/calculated columns in Power BI,

https://docs.microsoft.com/en-us/power-bi/desktop-tutorial-create-measures

https://docs.microsoft.com/en-us/power-bi/desktop-tutorial-create-calculated-columns

For your scenario, please refer to the following article:

https://www.sqlbi.com/articles/inventory-in-power-pivot-and-dax-snapshot-vs-dynamic-calculation/

 

Finally, create visuals on reports pages to display your results.

https://docs.microsoft.com/en-us/power-bi/visuals/power-bi-report-visualizations

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Thank you for the response. 

 

The thing is we dont have that version of SAP. We only purchad SAP Business one. this version lacks some features. So we are connecting to Power Bi by SQL. Writing our custom SQL query to connect to Power Bi. so thats why i just wanted to see how an official form of WH report SQL table looks like. 

Hi @Tuvdata 

"we are connecting to Power Bi by SQL. Writing our custom SQL query to connect to Power Bi",

What is the purpose of the SQL used when connecting from SAP to Power BI?

Filtering some data? add some columns?

Create a view?

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Community Champion
Community Champion

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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