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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

only showing data in a table when a customer is selected (updated)

Hello all,

 

I have a table that looks like this:

Capture.PNG

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, for example the table would show this:

Capture2.PNG

 

Until you selected a customer, then the table would look like this:

Capture3.PNG

 

the logic would be - if company has one value then return all companyID, else return "No Customer Selection"  same logic for the other columns with reguards to the column names

 

How could I accomplish this? here is the sample file

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi , @Anonymous 

Here is  a workaround ,maybe you can take a try.  ( pbix attached)

step1. create a seperate table as slicer

Table 2 = DISTINCT(Attachements[CompanyName])

step 2. create a visual control measure as below:

Measure = IF(ISBLANK(SELECTEDVALUE('Table 2'[CompanyName])),0,1)

apply it  the filter pane as below:

53.png

 

The result will show as below:

55.png  54.png

 

 

The only drawback is that it does not display a record "no customer selected".

I hope that others can propose better solutions, and I will continue my further research.

 

Best regards,

Eason Fang

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi , @Anonymous 

Here is  a workaround ,maybe you can take a try.  ( pbix attached)

step1. create a seperate table as slicer

Table 2 = DISTINCT(Attachements[CompanyName])

step 2. create a visual control measure as below:

Measure = IF(ISBLANK(SELECTEDVALUE('Table 2'[CompanyName])),0,1)

apply it  the filter pane as below:

53.png

 

The result will show as below:

55.png  54.png

 

 

The only drawback is that it does not display a record "no customer selected".

I hope that others can propose better solutions, and I will continue my further research.

 

Best regards,

Eason Fang

Anonymous
Not applicable

thank you @v-easonf-msft this worked perfectly. I appreciate the help

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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