Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi experts,
I'd like to calculate how many selected customer in the customer slicer.
Here's my current measure and demo file attached:
It works when all other slicers aren't selected, but if we choose other slicers, the measure shows incorrect number as below.
Ex. It should be 2 instead of 1 in this case.
Thanks in advance!
Solved! Go to Solution.
Hi @jwang19 ,
Based on your data, there is only one line of data that also satisfies Manager=A , Customer=xxxxx /zzzzz , MeetingDate=4/1/2023, due to the fact that measure is dynamic value that change based on context. So if you want to show only the number of Customer selected in the slicer, you can create a card visual object or place only this metric in the table and the other slicers don't affect the measure, so you also need to edit the interaction.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @jwang19 ,
According to your description, here are my steps you can follow as a solution.
(1) We can create a measure.
Count of Selected Customer = CALCULATE(DISTINCTCOUNT('Customer_Visit_Plan'[Customer]),ALLSELECTED('Customer_Visit_Plan'[Customer]))
(2) Then the result is as follows.
Unfortunately the pbix you provided I do not have access to. If this doesn't help, please provide the pbix file that can be accessed. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. s
Hi @v-tangjie-msft,
Thanks for the response, but it's not working in my file.
Please see attached my access link: https://joycewang1003.notion.site/Demo-Questions-54a2d9b721a74bba936fc968217e31a7?pvs=4
If it's still not working, my demo table is like this without any relationship:
Thanks again for your help!
Hi @jwang19 ,
Based on your data, there is only one line of data that also satisfies Manager=A , Customer=xxxxx /zzzzz , MeetingDate=4/1/2023, due to the fact that measure is dynamic value that change based on context. So if you want to show only the number of Customer selected in the slicer, you can create a card visual object or place only this metric in the table and the other slicers don't affect the measure, so you also need to edit the interaction.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks, perhaps it's the correct solution for this case.
Unfortunately it couldn't fix my question to calculate the selected costumers considering all context, so I reopen another new question to describe the whole report I'd like to make.
Pls let me know if you have any ideas on it: Blank option in Single-select slicer with other op... - Microsoft Fabric Community
Thanks!!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
21 | |
15 | |
14 | |
11 | |
7 |
User | Count |
---|---|
26 | |
24 | |
12 | |
11 | |
10 |