Forum Discussion
Need help setting up a logistics visual
- 8 years ago
Anonymous
Hi Robin,
That's OK. I found a solution. Please reference this file: https://1drv.ms/u/s!ArTqPk2pu-BkgRhSiy4U2C9zaXVG
1. Create a new table "WH".
WH = VALUES ( 'Table1'[WareHouse Number] )
2. Establish relationship.
3. Create a measure.
FinalMeasure = VAR selectedWH = IF ( HASONEVALUE ( WH[WareHouse Number] ), VALUES ( WH[WareHouse Number] ), BLANK () ) VAR selectedWHvk2 = CALCULATETABLE ( VALUES ( Table1[Item] ), FILTER ( ALL ( 'Table1' ), 'Table1'[Item Class] = 2 && 'Table1'[WareHouse Number] = selectedWH ) ) RETURN CALCULATE ( IF ( MIN ( 'Table1'[Item] ) IN selectedWHvk2 && MIN ( 'Table1'[Item Class] ) = 1, 1, 0 ), ALL ( WH ) )4. Create several visuals.
5. Filter the result. (Visual level filter)
Note: 1. The slicers are from different tables. Don't mix up.
2. All the columns are needed in the visual as the picture showed.
Best Regards!
Dale
Hi Anonymous,
I think you have added more conditions to this question. For example, L10 has "A" of "vk2", L60 has "A" of "vk1". So there is a truck transports some A to L60. You want to know if "B" of "vk2" in L60 are "vk1" in the L10, then you can transport "B" BACK to L10 with the same truck. Right?
Best Regards!
Dale
Yes that is exactly corrent sir.
I do appologise Dale, my head got abit messy with figuring out how to explane this, and yes, i dide add more conditions as i was trying to figure out the best way to use the data.
I should probably have mentioned that to
- v-jiascu-msft8 years agoMicrosoft Employee
Anonymous
Hi Robin,
That's OK. I found a solution. Please reference this file: https://1drv.ms/u/s!ArTqPk2pu-BkgRhSiy4U2C9zaXVG
1. Create a new table "WH".
WH = VALUES ( 'Table1'[WareHouse Number] )
2. Establish relationship.
3. Create a measure.
FinalMeasure = VAR selectedWH = IF ( HASONEVALUE ( WH[WareHouse Number] ), VALUES ( WH[WareHouse Number] ), BLANK () ) VAR selectedWHvk2 = CALCULATETABLE ( VALUES ( Table1[Item] ), FILTER ( ALL ( 'Table1' ), 'Table1'[Item Class] = 2 && 'Table1'[WareHouse Number] = selectedWH ) ) RETURN CALCULATE ( IF ( MIN ( 'Table1'[Item] ) IN selectedWHvk2 && MIN ( 'Table1'[Item Class] ) = 1, 1, 0 ), ALL ( WH ) )4. Create several visuals.
5. Filter the result. (Visual level filter)
Note: 1. The slicers are from different tables. Don't mix up.
2. All the columns are needed in the visual as the picture showed.
Best Regards!
Dale
- Anonymous8 years agoNot applicable
Well done sir, well done!
Thank you very mutch Dale!
- v-jiascu-msft8 years agoMicrosoft Employee
My pleasure.
Best Regards!
Dale