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
vw_golf_mk3
Helper I
Helper I

Seeing is Deceiving - HierarchySlicer Visual Impact on Filter Transition

 

Below is an interesting discovery in filter transition visual - HierarchySlicer. In fact, what you see in the visual as a filter does not always mean what you see as filter is what has been applied to your model.

 

So below is a simple sample model, containing ProductHierarchy, ConvRtoBaseUOM and PurchaseOrder tables.

ProductHierarchyProductHierarchy

 

ConvRtoBaseUOMConvRtoBaseUOM

 

PurchaseOrderPurchaseOrder

 And the relationship is shown as below. Each product has its own configuration. Logistics uses purchase unit of measure all the time. Sales department could be using a different one, etc etc. ConvRtoBaseUOM table in this model provides a conversion rate for us to obtain what's ordered in base unit of measure from purchase unit of measure. (Qty in base UOM = [Conv Rate of Purch. to Base] * [Qty in Purch. UOM])

RelationshipRelationship

 

 Now let's create all the measures we need in the model. They are:-

1. Conv Rate of Purch. to Base UOM = SUM(ConvRtoBaseUOM1[ConvRtoBaseUOM])

2. Purchase Qty in Base UOM = [Conv Rate of Purch. to Base UOM]*[Purch.QtySum]

3. Purch.QtySum = SUM(PurchaseOrder[PurchaseQty])

 

 Let's imagine here. If you are a logisitc manager, you will need to make sure all stocks to remain at a healthy stock level. So you want to have a look at the top selling product 00001. You then punch 00001 in the search bar of the HierarchySlicer visual below. And very naturally, you click on the "AUS-00001". The lower table then starts the converting qty from purchase uom to base uom.

 

As you are very familiar with the very popular product "AUS-00001", you notice something unusual here. You then go back to the ConvRtoBaseUOM table, only to find out that the conversion rate is 1, instead of what has been shown below as 3.

Deceiving1Deceiving1

 Curiouser and curiouser, hey? You add another Matrix visual to the right as shown below. Ahahhh! WHY AUS-00002 and AUS-00003 haven't been filtered out by searching "00001" and clicking only to "AUS-00001".

 

That is to say, what you are seeing here is not believing, right? Pretty deceiving!

Deceiving1Reasoning.JPG

A workaround will be swapping the HierarchySlicer for the Slicer visual which allows only one field, consequently killing out the possiblities miss-choosing unwanted products. Print screen is shown below in Workaround-change2SlicerVisual.

Workaround-change2SlicerVisualWorkaround-change2SlicerVisual

 If you do not want to change the HierarchySlicer visual, you will need to visually see any other products under the same brand as "AUS-00001" does are being unticked. This time, search bar is left blank purposely. Print screen is shown below in Workaround-KeepHierarchySlicer. 

Workaround-KeepHierarchySlicerVisualWorkaround-KeepHierarchySlicerVisual

 

Top Kudoed authors @v-caliao-msft @MattAllington @ankitpatira @v-shex-msft, any thoughts?

 

Cheers!

 

 

 

 

 

 

1 ACCEPTED SOLUTION

I haven't read all the detail, but it seems to me there is a potential flaw in your formulas.   Try changing formula 2 

Purchase Qty in Base UOM = sumx(values(producthierarchy[item key]),[Conv Rate of Purch. to Base UOM]*[Purch.QtySum])



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

View solution in original post

1 REPLY 1

I haven't read all the detail, but it seems to me there is a potential flaw in your formulas.   Try changing formula 2 

Purchase Qty in Base UOM = sumx(values(producthierarchy[item key]),[Conv Rate of Purch. to Base UOM]*[Purch.QtySum])



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

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.