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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Using the slizer to show only the ones where specific columns have Data.

Hello, 

i made for my Projekts custom columns for 6 Situations, where i look how long it took from: data received to: related work finished (with DATEDIF). I can show this data easaly with Diagrams. So then i wanted to make a slicer to only show one of the 6 Situatuions. But i cant do it.

The problem is that the projekts i look at can have one up to all 6 Situations at the same time. But i only want to show the data of one aspekt of it.  

For example Projekt 1 has  Situations A;B;C and projekt 2 has Situations B;D. I dont need to see the Projekts. So i want a slizer with the informations related to A;B;C;D;E;F. 

So every Row of a Projekt as every column of the DATEDIFF related to A;B;C;D;E;F but only the ones with available data are filled. For example Projekt 1 that has  DATEDIFF A;B;Cn is empty for the columns DATEDIFF D;E;F.

How can i make a slicer that only shows the projekts where there is data in a specific column. For example DATEDIFF A.

 

I hope my explanation is understandable.

 

Have a great Day and thanks in advance.

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Do you want to show the projects contain the selected situation in slicer? Here I suggest you to create an unrelated dimsituation table for slicer and then create a measure.

My Sample:

RicoZhou_0-1663055700755.png

Dimsituation:

Selection = 
{"A","B","C","D","E","F"}

Measure:

Measure = 
VAR _SELECTVALUE = SELECTEDVALUE(Selection[Value])
VAR _PROJECT_LIST = CALCULATETABLE(VALUES(Data[Situation]),ALLEXCEPT(Data,Data[Project]))
RETURN
IF(_SELECTVALUE IN _PROJECT_LIST,1,0)

Add this measure into the visual level filter of table visual and set the measure to show items when value =1.

Result is as below.

RicoZhou_1-1663055789315.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

 

Do you want to show the projects contain the selected situation in slicer? Here I suggest you to create an unrelated dimsituation table for slicer and then create a measure.

My Sample:

RicoZhou_0-1663055700755.png

Dimsituation:

Selection = 
{"A","B","C","D","E","F"}

Measure:

Measure = 
VAR _SELECTVALUE = SELECTEDVALUE(Selection[Value])
VAR _PROJECT_LIST = CALCULATETABLE(VALUES(Data[Situation]),ALLEXCEPT(Data,Data[Project]))
RETURN
IF(_SELECTVALUE IN _PROJECT_LIST,1,0)

Add this measure into the visual level filter of table visual and set the measure to show items when value =1.

Result is as below.

RicoZhou_1-1663055789315.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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