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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
User232431
Helper III
Helper III

Display dynamic selected value if value is missing

Hi , i am trying to show filtered text if it is missing.
Missing.png

In above example if i select "USA" then i can able display concatination of "City" and "Value"
if i select "UK" how can i display "City" and "(Blank)" (i.e in my example "A:(Blank)")
i have tried the below dax function 

Cards_Val =

IF(
    ISFILTERED(Sheet1[City]) ,
    SELECTEDVALUE( Sheet1[City])&" : "&AVERAGE(Sheet1[Value]),
    SELECTEDVALUE( Sheet1[City])&" : (Blank)"
    )
Thanks in advance.
2 REPLIES 2
Anonymous
Not applicable

Hi All,
Firstly  grazitti_sapna thank you for your solution!
And @User232431 , I think the situation you need is when selecting UK it is (blank) + value right, here is what I did hope it helps!

Cards_Val = 
IF(
    ISBLANK(SELECTEDVALUE(Sheet[Value])),
    SELECTEDVALUE(Sheet[City]) & " : (Blank)",
    IF(
        SELECTEDVALUE(Sheet[City])=BLANK(),
        "(Blank)" &":"& SELECTEDVALUE(Sheet[Value]),
        SELECTEDVALUE(Sheet[City]) & " : " & SELECTEDVALUE(Sheet[Value])
    )
)

vxingshenmsft_1-1732686200746.png

 

Hope it helps!

Best regards,
Community Support Team_ Tom Shen

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

grazitti_sapna
Super User
Super User

Hi @User232431, Your DAX function logic is close, but it needs refinement to handle missing values dynamically. Below is the updated DAX formula that checks whether the Value field has data or not for the selected City and returns the appropriate concatenation:

Cards_Val =
IF (
ISFILTERED(Sheet1[City]),
SELECTEDVALUE(Sheet1[City]) & " : " &
IF (
ISBLANK(AVERAGE(Sheet1[Value])),
"(Blank)",
AVERAGE(Sheet1[Value])
),
SELECTEDVALUE(Sheet1[City]) & " : (Blank)"
)

If I have resolved your question, please consider marking my post as a solution. Thank you!

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.