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

Warehouse stock balancing: Data modelling/DAX measure advice

Hello, I am hoping someone can help advise the best way to model a warehouse type data set / create a measure..

 

I am showing warehouse stock levels using a matrix table, each cell represents shelf location availability (link to sample pbix file below). Each cell in the matrix can store 2 items as a maximum. As inventory changes over time (I have added a calendar table) I'd like the hover over info to show what the current storage location has in it *without seeing the history of past items that were stored there*.  

 

Sample pbix file here.. 

 

The ingoing and outbound movements are in the same table at the moment, should they be separate tables?

 

Any advice would be appreciated! Thanks in advance 🙂

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Try this:

 

For hiding UPN went in and out again,

Create a measure like so:

Measure = 
IF (
    CALCULATE ( [(Temp) In-out], ALLEXCEPT ( Table1, Table1[URN] ) ) = 0
        || CALCULATE ( [(Temp) In-out], ALLEXCEPT ( Table1, Table1[URN] ) ) = BLANK (),
    0,
    1
)

 

And then put it on "Filters on this visual" of the table on your Tooltip page.

tooltip.PNG

before filter.jpgafter filter.jpg

 

For removing the 0's,

Change your [(Temp) In-out] measure like so:

(Temp) In-out = 
VAR In_Out = [Inbound] - [Outgoing]
RETURN
    IF ( In_Out = 0, BLANK (), In_Out )

 

For more details, please check the attached PBIX file.

 

 

Best Regards,

Icey

 

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

2 REPLIES 2
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Try this:

 

For hiding UPN went in and out again,

Create a measure like so:

Measure = 
IF (
    CALCULATE ( [(Temp) In-out], ALLEXCEPT ( Table1, Table1[URN] ) ) = 0
        || CALCULATE ( [(Temp) In-out], ALLEXCEPT ( Table1, Table1[URN] ) ) = BLANK (),
    0,
    1
)

 

And then put it on "Filters on this visual" of the table on your Tooltip page.

tooltip.PNG

before filter.jpgafter filter.jpg

 

For removing the 0's,

Change your [(Temp) In-out] measure like so:

(Temp) In-out = 
VAR In_Out = [Inbound] - [Outgoing]
RETURN
    IF ( In_Out = 0, BLANK (), In_Out )

 

For more details, please check the attached PBIX file.

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thats a really helpful explanation and works perfectly - @Icey thank you so much! 😊

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.