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
PuddleRunna
Advocate I
Advocate I

Show Slicer value or empty in a column

Hi guys,

 

I'm stuck on this one, maybe someone can point me in the right direction.

 

I have a visualized table based on filters set for the page.

Now for this specific set of data I want to be able to see if they have a specific software assigned. That data is available as text in SoftwareAssignment[SoftwarePackage].

I have created a new column "Check Package" as 

Check Package = IF([SoftwarePackage]="Software 1",[SoftwarePackage],"")
It does exactly what I want it to do. It keeps the original data and displays who has it assigned and who doesn't (as empty):
 
Column AColumn BCheck Package
Functional14.04.2021 03:01 
Functional14.04.2021 03:01 
Functional14.04.2021 03:01Software Package 1
Functional25.03.2021 11:54 
Functional25.03.2021 11:54Software Package 1
Functional14.04.2021 03:01 

 

So far so good, I have like 300 Software Packages though, so I need this to be flexible and be able to quickly filter for Software 2 etc.

Sooo, after browsing the net for ages and not finding that ONE solution to my scenario, I have done the following:

1. Put a Slicer on "SoftwareAssignment"[SoftwarePackage]

2. Created a Measure 

Slicer Selection = SELECTEDVALUE(SoftwareAssignment[SoftwarePackage])
(Can't remember anymore why I did that exactly, but it seems to have helped 🙈)
3. Changed "Check Package" to this: 

Check Package = IF([Slicer Selection]=[SoftwarePackage],[SoftwarePackage],"")

 

Now it does do the filtering dynamically, however it doesn't display the blanks anymore:(

 

Column AColumn BCheck Package
Functional21.10.2020 00:33Software Package 2
Functional28.03.2021 07:03Software Package 2
Functional27.03.2021 12:43Software Package 2

 

Appreciate any help on this!

 

(As a next step I would want that column to display as empty if no selection is made in the slicer, but I think I've seen solutions to this around here already :))

1 ACCEPTED SOLUTION
V-pazhen-msft
Community Support
Community Support

@PuddleRunna 
You need to create a disconnected to be used as the slicer.

 

1. create a new table with a column: Table = Distinct( 'SoftwareAssignment'[SoftwarePackage])

2. use the new column it as the slicer.

3. create a measure:

Check Package = IF(MAX('SoftwareAssignment'[SoftwarePackage])=Selectedvalue('NewTable[Column]),[SoftwarePackage],"")

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
V-pazhen-msft
Community Support
Community Support

@PuddleRunna 
You need to create a disconnected to be used as the slicer.

 

1. create a new table with a column: Table = Distinct( 'SoftwareAssignment'[SoftwarePackage])

2. use the new column it as the slicer.

3. create a measure:

Check Package = IF(MAX('SoftwareAssignment'[SoftwarePackage])=Selectedvalue('NewTable[Column]),[SoftwarePackage],"")

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

Magic, git it to work. Thanks 🙂

 

amitchandak
Super User
Super User

@PuddleRunna , Not very cleat. But if you are trying to use a measure or slicer value in new column, that will not work

Doesn't have to be a new column. I have no idea on how to realize what I'm trying to do, so that was my first attempt. I'll take whatever will make me achieve this.

 

What I need is a dynamic way to achieve what I did with the first sample table.

Out of my filtered visual table that has 7 rows, I want to display which of these have Software Package xy assigned while still displaying all 7 rows instead of filtering to just Software Package xy.

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.