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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Table Display

Hello,

 

We are creating a dashboard in Power BI and are having difficulty with a display request from our users.  I am hoping you can help with that because I don't know how to start this.

 

Our company receives shipments into warehouse 0002 and then transfer items to our other warehouses that need replenishment.  This dashboard is going to be used by a person in warehouse 0002 and help her determine which warehouse she needs to create a transfer to (specific to that ITEM).  

 

Our table consists of three columns:

ITEM – this is the item that may or may not need a transfer

WHSE – displays the warehouse number

WHSE QTY – shows the qty of that item.  If it is positive, we have inventory.  If it is negative, that warehouse is demanding inventory.

cswinimer_3-1655241756235.png

 

Here are some conditions that we are looking to satisfy for the development of this dashboard.

  • In all cases, we never want to show a line for the ITEM at WHSE 0002.  We only want to display which WHSE that ITEM needs to be transferred to.

cswinimer_1-1655241462840.png

 

 

  • If WHSE (0002) has a WHSE QTY that is equal to the demand to another warehouse for that ITEM then show ONLY the demanding warehouse.  If there is more than one demanding warehouse for that ITEM then we only need to display one WHSE (it doesn’t matter which demanding warehouse is displayed).  In the example below, WHSE 0002 can fill the demand for WHSE 0004 and 0030.  We only need to display one warehouse so we would like the output to only show the row in the middle.  We don’t need to see the first and third row.

ITEM

WHSE

WHSE QTY

258963

0002

3

258963

0004

-3

258963

0030

-3

  • If WHSE (0002) has a WHSE QTY that is equal to zero or is negative for that ITEM, do not display an output for that ITEM (for any WHSE).  In the example below, WHSE 0002 does not have inventory to transfer so no need to display either row.

ITEM

WHSE

WHSE QTY

7013

0002

-2

7013

0032

1

 

 

  • If WHSE (0002) has a WHSE QTY that is positive for that ITEM AND the WHSE QTY at ALL of the other WHSE locations are positive for the same ITEM then do not display any of the results.   In the example below, all of the warehouses have a positive WHSE QTY and none of these rows need to be displayed.

ITEM

WHSE

WHSE QTY

7016

0002

1

7016

0032

1

7016

0004

1

 

  • If WHSE (0002) does not have an ITEM listed, then do not show any rows for that ITEM.  In the below example, WHSE 0002 does not carry that item so it cannot help replenish the demand for that ITEM at the other WHSE's.

ITEM

WHSE

WHSE QTY

8478

0032

-1

8478

0004

-9

 

Here is some sample data, if helpful.  The examples above, appear here.  This community has been really great.  I've learned so much from here.  I hope to be as proficient at Power BI as all of you are soon so that I can give back and start helping others!

 

ITEMAVAILABLE WHSEWHSE QTY
1010002-2
1010030-2
1010032-2
1010004-2
1232.1588200029
1232.1588200322
301300302
31030030-3
31030002-3
31030032-3
31030004-3
70130002-2
701300321
701600021
701600321
701600041
720400301
720400022
84780032-1
84780004-9
95500030-9
9550000258
95500032-9
178170002247
178170032-53
218840002258
218840032-36
056-020700305
056-020700022
055FBSH015+054S01s80600021
055FBSH015+054S01s8060034-1
25896300023
2589630004-3
2589630030-3
076-0485A00022
076-0585A00021
076-527100022
076-572100028
8 019 51 00200372
8 030 44 10100013
716L180000026
8 030 56 09600352
716L190000022
8 039 55 06400372
80.110.11NG00011
71915CEHC-P4A-DGA00021
71916CE/P4A/QBTA000215
7200CDGNP500028
7202CDBGNP500023
80.124.0000011
7203DB00022
7204CTRDULP4Y00021
7206ATYDBTP500022
7206BYG00025
8006300100011
800A-K2AW00372
800A-M2AC4L00371
800A-M2EG00375
800E-2X1000377
800E-A2L00375
800EM-F200372
800EM-HR2200371

 

1 REPLY 1
speedramps
Super User
Super User

Sorry this is not a finished solution, but I am a volunteer who provides free BI support in my spare time and it is now past my bed time.

Click here to download a solution 

 

I have used Power Query to create 3 tables:-

  • Items (with item code)
  • HQ (with inventory and  demand just for WHSE 0002)
  • Local (with inventory and  demand just for WHSE 0002)

Then  joined the tables with relationships

 

Then created DAX measure for 

  • HQ invetory
  • HQ demand
  • Local invetory
  • Local demand

This makes building reports much easier

 

The left visual show just items that have HQ invetory  AND  Local demand.

 

If you click on an item on left visual then the right hand visual will show the local warehouses that have the demand.

 

It needs tweaking for your exact requirements but I hope that this first stab helps!

 

I will try have a look again tomorrow in my lunch break.  😁

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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