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
admin11
Memorable Member
Memorable Member

How to make Pro Class Description appear at Inventory Table ?

Hi All

I have a inventory Table , the Raw data file lack of Pro Class Description it only have Pro Class Code , So the report not easy understand. 

My Sales Table have Pro Class Code and Description. , Cn some one advise me how to make the Pro Class Descrition appear at Inventory Table.

 

admin11_0-1619851478349.png

My PBI file :-

https://www.dropbox.com/s/56sbtewqme7fb7v/PBT_V2021_400%20INVC_TI_.pbix?dl=0

 

Pau;

 

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @admin11 

 

Since you already have an inactive relationship between Inventory Table and SALES table on pro_class_code columns, you can create below measure to get the pro_class_desc and put it in the table.

Measure 6 = CALCULATE(SELECTEDVALUE(SALES[PRO_CLASS_DESC]),USERELATIONSHIP(SALES[pro_class_code],INVC[PRO_CLASS_CODE]),CROSSFILTER(SALES[pro_class_code],INVC[PRO_CLASS_CODE],OneWay_RightFiltersLeft))

050402.jpg

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

View solution in original post

4 REPLIES 4
v-jingzhang
Community Support
Community Support

Hi @admin11 

 

Since you already have an inactive relationship between Inventory Table and SALES table on pro_class_code columns, you can create below measure to get the pro_class_desc and put it in the table.

Measure 6 = CALCULATE(SELECTEDVALUE(SALES[PRO_CLASS_DESC]),USERELATIONSHIP(SALES[pro_class_code],INVC[PRO_CLASS_CODE]),CROSSFILTER(SALES[pro_class_code],INVC[PRO_CLASS_CODE],OneWay_RightFiltersLeft))

050402.jpg

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

@v-jingzhang 

I have try to test your code with my PBI data , i notice one of the 

admin11_0-1620295372161.png

Hope you can share with me where go wrong ?

 

Paul

 

@v-jingzhang 

wow , you are very good , it work !!! Thank you very much , save me a lot of time.

Paul

daxer-almighty
Solution Sage
Solution Sage

Again, use Power Query.

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.