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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Gjn
New Member

Urgent : Masking the customers based on the selection from slicer

Hello Everyone,

Apologies,I am new to PowerBI...i have below requirement.

From the below dataset,i need to generate barchart/clusterchart where if i select one customer from the slicer then other customers should be masked on the chart.Kindly note i have in my data almost 20 number of customers...suppose if i select customer 15 then only customer 15 name is visible on the bar chart and remaining all the customer names should be masked but bars should be displayed in the chart.

 

Kindly let me know if you need more information.

Appreciate your help...!!!

Customerdept    sales
Customer1 A10
Customer1 B20
Customer1C30
Customer2D20
Customer2E10
Customer2F10
Customer3G20
Customer3H35
Customer3I10

 

1 ACCEPTED SOLUTION

Hi @Gjn , I have achieved the similar output by tweaking the dax. Masking the customer names on x axis level is not possible since columns are evaluated during a model refresh and cannot be made dynamic. 

But this file should solve your scenario: Download New PBIX

 

Outputs:

 

JaiRathinavel_1-1731837476540.png

 

JaiRathinavel_0-1731837456622.png

 

Did I answer your question ? If yes, please mark my post as a solution

 

Thanks,

Jai 🙂




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

5 REPLIES 5
Ritaf1983
Super User
Super User

Hi @Gjn 
Can you show the desired result?

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Gjn_0-1731773492730.png

The desired output will be as below...
if i select the customer1 from the slicer then i need to populate the original name for customer1 bar and remaining bars should be masked to 1 and 2.
And in the same way if i select customer2 then customer2 should be populated and remaining customers should be masked and so on...

Hi @Gjn , I have achieved the similar output by tweaking the dax. Masking the customer names on x axis level is not possible since columns are evaluated during a model refresh and cannot be made dynamic. 

But this file should solve your scenario: Download New PBIX

 

Outputs:

 

JaiRathinavel_1-1731837476540.png

 

JaiRathinavel_0-1731837456622.png

 

Did I answer your question ? If yes, please mark my post as a solution

 

Thanks,

Jai 🙂




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Jai-Rathinavel
Super User
Super User

Hi @Gjn ,

 

I have achieved your requirement in a sample PBIX: Download PBIX

Please apply the same visual settings used in my file to yours. Like turning off x axis labels, tooltips.

 

JaiRathinavel_0-1731703297906.png

 

Did I answer your question ? If yes, please mark my post as a solution.

 

Thanks,

Jai 🙂

 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Hello Jai,

Thanks for your reply...it is similar result which i am excepting and as of now we are populating customer2 based on the slicer selection and i addition to that i need to populate the masked customers like 1 and 2 for other bars in the chart.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors