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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
TaroGulati
Helper III
Helper III

Show only no blank values in card

Hi everyone, 

 

I want to show the available values in the slicer which has some values in fact. 

 

I have one dimension table and one fact table. Relation is one to many. As you can see category D has no values. In the text box below I want to shows only those category which has some values. 

 

TaroGulati_0-1667379995000.png

This is the measure that i am using: 

Filter =
UNICHAR ( 10 ) & " Category: "
&CALCULATE(CONCATENATEX ( VALUES(Dim[Category1]),Dim[Category1],", "))
 
do you have any suggestion how to exclude category D from the list?
 
Thanks
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@TaroGulati , using value measure

 

CALCULATE(CONCATENATEX ( filter(VALUES(Dim[Category1]),  not(isblank([Value])) ),  Dim[Category1],", "))

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@TaroGulati , using value measure

 

CALCULATE(CONCATENATEX ( filter(VALUES(Dim[Category1]),  not(isblank([Value])) ),  Dim[Category1],", "))

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak perfect, it works

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors