Forum Discussion
Create a comparison column using 3 tables
There @v-easonf-msft,
It is not fully solved. I have been able to create a measure to show the gap between "order, inventory and GIT" however I can't convert it to a another measure or column using IF fucntion.
First I have calculated each tables value seperately with below measure.
- v-easonf-msft5 years agoCommunity Support
Hi, metin
Can share more details for testing?
Perhaps your measure lacks the corresponding context for filtering in the current visual object. If so, you may need to use the āsummarizeā function to create a temporary table for encapsulation before using the measure.
Best Regards,
Community Support Team _ Eason- metin5 years agoFrequent Visitor
There @v-easonf-msft
I have created a sample data set but not sure how I can share it with you.
The measure I am using in each table (Inventory, Order and GIT) simply looks like below;
Total By Material Number (INV) = CALCULATE (SUM (Inventory [Quantity Available]), GROUPBY (Inventory, Inventory [Product Code]))
Then I had another measure like this to show the gap.Measure = Total By Material Number (Order) - Total By Material Number (INV) - Total By Material Number (GIT)I can see end result of this formula when I put in table type of visual.However I want to create a couple pie chart type of visuals which would show the percentage of products which have excess or minus stock. Above measures doesn't help to create such a visual.Let me know if you need further details.Thanks.
- v-easonf-msft5 years agoCommunity Support
Hi , metin
Pbix files in live conect mode are not suitable for sharing. It is recommended to paste the simplified tables' data here, then please briefly introduce the relationship between tables and your expected results.You also can upload a simplified version in import mode to Onedrive and share the link here.
Best Regards,
Community Support Team _ Eason