Forum Discussion
Finding the common item from the multiples category
- 2 years ago
Hi,
Please check the below picture and the attached pbix file.
expected result measure only item: = VAR _categorycount = COUNTROWS ( ALLSELECTED ( Data[Category] ) ) VAR _currentcategory = VALUES( Data[Category] ) VAR _currentitem = SELECTEDVALUE ( Data[Item] ) VAR _t = ADDCOLUMNS ( ALLSELECTED ( Data ), "@count", COUNTROWS ( FILTER ( ALLSELECTED ( Data ), Data[Item] = _currentitem ) ) ) RETURN SUMX ( FILTER ( _t, Data[Category] in _currentcategory && Data[Item] = _currentitem && [@count] = _categorycount ), [@count] )
This my table below is the screen where i followed your instruction
but i am not getting proper result
can you please guid me here
- rajeshapunu12342 years ago
Helper I
Hi Jiwan Kim
you understood my point very clearly and it is working now
Thanks for your support
adding to that is it possible to get the item name seperately whithc distinct without package name
Only common item name (distinct) should show whenever selectes the packes in the slicer
thanks- Jihwan_Kim2 years ago
Super User
Hi,
Please check the below picture and the attached pbix file.
expected result measure only item: = VAR _categorycount = COUNTROWS ( ALLSELECTED ( Data[Category] ) ) VAR _currentcategory = VALUES( Data[Category] ) VAR _currentitem = SELECTEDVALUE ( Data[Item] ) VAR _t = ADDCOLUMNS ( ALLSELECTED ( Data ), "@count", COUNTROWS ( FILTER ( ALLSELECTED ( Data ), Data[Item] = _currentitem ) ) ) RETURN SUMX ( FILTER ( _t, Data[Category] in _currentcategory && Data[Item] = _currentitem && [@count] = _categorycount ), [@count] )- rajeshapunu12342 years ago
Helper I
Sir thank you so much your DAX function working as per my expectation
so now i can get the common item from the selected category by clicing the filter "is not blank"
and i can get the other then the common items like the item can be available in both but not not matching
is it possible to take the item which is not available in the both categery by using this dax
if possible please let me know how can acheive it
thanks