Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
smith12
New Member

Display Filtered values in table column

Hello

 

i'm kind of new in powerbi and don't have much record in coding so i hope anyone could help

 

my page has a slicer for "items"

i want to display only the filtered items that a cosutmoer didn't buy in a field

the problem is when i pick 2 items for example and only one of them was not bought by a costumer,

i see  all the filtered values from the slicer and not only the ones that the Customers didn't buy

 

 

my current measure is:

 

Measure = IF(DISTINCTCOUNT(View_SalesDashBoard[ItemCode]) < CALCULATE(COUNT(OITM[ItemCode]), ALLSELECTED(OITM[ItemCode])) ,
CONCATENATEX(
VALUES(OITM[ItemCode]) ,
OITM[ItemCode] , "; ", OITM[ItemCode],
ASC) ,
 
"All Sold")

 

 

hope some one could help 🙂

3 REPLIES 3
amitchandak
Super User
Super User

@smith12 , you should have two dimensions (separate tables) customer and item

 

Assume you have measure [sales] from common tables

 

not sold = concatenatex(VALUES(OITM[ItemCode]), if(isblank([sales] ), [ItemCode], blank() ) )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hey:)
thanks for the fast reply

i created the measure with the code you wrote
and i added it to my table view but it doesnt show any value(even the ones that are checked in the slicer and sold)


Anonymous
Not applicable

Hi @smith12 ,

 

Could you tell me if your problem has been solved?

If not, could you please provide some simple sample data and expected results?

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.