cardinality
2 TopicsColumn Comparison - Vlookup
I have two columns I need to compare, one column: 'MOM Stocking Report': Shows all stocked items & 'Demand Seg': Shows the complete list of purchased items. I need to compare them against one another to know which ones are stocked and which are not. As you can see the equation below, it appears to get me halfway there as the pie chart does capture the data, however I am not certain this is correct, Also when I click on the 'YES' stocked pie chart, the table shows nothing. Also, technically the 'Agreement Level' should be a 0 if 'Not Stocked' or come back with null. My relationship cardinality is at Many to Many , it wont let me change- I have removed all duplicates from Power Query. So I am basically out of ideas: My Stock or Not Equation: Stocking Agreement? = if(isblank(countx(filter('MOM Stocking Report','MOM Stocking Report'[Item Number]='Demand Seg'[ITEM NUMBER]),'MOM Stocking Report'[Item Number])),"YES","NO")1.2KViews0likes2CommentsSUMX over dimension table
Hello, im trying to optimize my sumx measure. my goal is to use a table that has fewer rows to make my iteration measure efficient. In my example, i have a trial balance which is my fact table containing the gl code, company code and amount. above it is gl mapping table which contains the gl code, gl name, company code and acct type. finally above the gl mapping table, i created two dimension tables , company code and acct type. to illustrate: company code table : accty type table gl mapping trial balance I have created a simple sumx measure like this: SUMX( Glmapping, IF( Glmapping[Account Type]="PL", CALCULATE(SUM(TB[amount])), CALCULATE(SUM(TB[amount])*-.3, ALLEXCEPT(Glmapping,Glmapping[Company Code])))) the above measure works fine, but i wanted to change the table to refer to the a cross join of the two above dimension table: SUMX( CROSSJOIN(VALUES('Account Type'[Account Type]),VALUES(Company[Company code])), IF( 'Account Type'[Account Type]="PL", CALCULATE(SUM(TB[amount])), CALCULATE(SUM(TB[amount])*-.3, ALLEXCEPT(Glmapping,Glmapping[Company Code])))) i having a weird result. appreciate if you can explain me why. I do have sample power pivot file, dont know how to attach it in this message to better illustrate my question.Solved5.6KViews0likes10Comments