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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

only showing data in a table when a customer is selected

Hello all,

 

I am trying to create a DAX measure that I can add to a table visual that will only show data when a customer is selected. 

The problem is there are numerous inputs for the same unique customer so using if  hasonevalue...selectdvalue is not working. 

the data looks like this

 

CustomerID    CustomerNotes

1                        call back today

1                         left message

1                        meeting for lunch

2                        not interested 

3                        successful meeting today

3                        sold 

4                        follow up in 1 month

5                        set up successful

5                        looking to downsize 

 

 

I would like to create a measure the shows "No Customer Selection" in a table visual when no customer is selected, and show all the customer notes for a customer when a customer is selected.

 

is this possible? 

 

7 REPLIES 7
v-yiruan-msft
Community Support
Community Support

Hi @Anonymous ,

If my understanding is correct, what you want is the table visual only display the corresponding value when specific customer selected. You can apply visual-level filter or slicer directly to get the desired result. 

filter data.JPG

If the above method is not applicale for your scenario or I misunderstanding your requirement, please correct me and provide more details. Thank you. 

Best Regards

Rena

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable
glissando
Resolver II
Resolver II

Have you tried using ALLSELECTED?

 

 

 

Actually, re-reading your question and sample data, why do you need a measure for something that appears to be so simple.

A slicer with the Customer ID provides what you seem to be asking for.

 

Maybe you need to prvide some more info?

 

Customerss Notes.png

amitchandak
Super User
Super User

@Anonymous , Not very clear

 

Assume you have separate customer dimension. Create a measure like

Count = count(Table[Cutomer Notes]) +0

 

Then use this measure with customer dimension and filter for 0

You can create a text measure on the top of it to show no option selected

 

also use this option, if needed

 

ShowItemwithoutdata.JPG

Anonymous
Not applicable

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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