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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
dd88
Post Patron
Post Patron

When visuals- filters selected clean up Number as display as dashes - or (Blank)

in a PowerBI report I have measures as Visual Cards. when other visuals /fillters are selected the results is the numbers update. If no value exists for the day/time/month selected, the total display as a dash ' -  ' or as (Blank).

see screen capture.

 

When filters selected clean up Number display as  dashes - or (Blank).jpg

 

Not sure if you need the measures, so attached just in case . I have many Measures, and the solution will need to be applied to all Measures to keep & look clean

 

Total_terminated_no_operator =
CALCULATE(
    COUNTROWS(AutoAttendantRaw),
    AutoAttendantRaw[AutoAttendantCallResult] = "terminated_no_operator"
)
 
Total_terminated_automatic_selection =
CALCULATE(
    COUNTROWS(AutoAttendantRaw),
    AutoAttendantRaw[AutoAttendantCallResult] = "terminated_automatic_selection"
)

 

 

How can this be cleaned up.

 

TIA

1 ACCEPTED SOLUTION
v-karpurapud
Community Support
Community Support

Hi @dd88 

In the current Power BI report, card visuals are showing either dashes ("--") or "Blank" when slicers or filters result in no matching data. This usually happens when a DAX measure returns a BLANK() value because there's no data in the current filter context.


To keep things looking consistent across all card visuals, it is better to handle BLANK() values directly within each DAX measure.  Update the measures as below:

Total_terminated_no_operator =
VAR Result =
    CALCULATE(
        COUNTROWS(AutoAttendantRaw),
        AutoAttendantRaw[AutoAttendantCallResult] = "terminated_no_operator"
    )
RETURN
    IF(ISBLANK(Result), 0, Result)

 

 

 

Repeat this pattern for all other measures where blank values may occur. For instance: 

Total_terminated_automatic_selection =
VAR Result =
    CALCULATE(
        COUNTROWS(AutoAttendantRaw),
        AutoAttendantRaw[AutoAttendantCallResult] = "terminated_automatic_selection"
    )
RETURN
    IF(ISBLANK(Result), 0, Result)



If this response resolves your query, kindly mark it as Accepted Solution to help other community members. A Kudos is also appreciated if you found the response helpful.

 

 

Thank you!

View solution in original post

5 REPLIES 5
dd88
Post Patron
Post Patron

many thanks @v-karpurapud  sorry I didnot reply sooner. yes that worked thank you all good

v-karpurapud
Community Support
Community Support

Hi @dd88 

I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.

Thank you.

v-karpurapud
Community Support
Community Support

Hi @dd88 

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.

Thank you.

v-karpurapud
Community Support
Community Support

Hi @dd88 

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

v-karpurapud
Community Support
Community Support

Hi @dd88 

In the current Power BI report, card visuals are showing either dashes ("--") or "Blank" when slicers or filters result in no matching data. This usually happens when a DAX measure returns a BLANK() value because there's no data in the current filter context.


To keep things looking consistent across all card visuals, it is better to handle BLANK() values directly within each DAX measure.  Update the measures as below:

Total_terminated_no_operator =
VAR Result =
    CALCULATE(
        COUNTROWS(AutoAttendantRaw),
        AutoAttendantRaw[AutoAttendantCallResult] = "terminated_no_operator"
    )
RETURN
    IF(ISBLANK(Result), 0, Result)

 

 

 

Repeat this pattern for all other measures where blank values may occur. For instance: 

Total_terminated_automatic_selection =
VAR Result =
    CALCULATE(
        COUNTROWS(AutoAttendantRaw),
        AutoAttendantRaw[AutoAttendantCallResult] = "terminated_automatic_selection"
    )
RETURN
    IF(ISBLANK(Result), 0, Result)



If this response resolves your query, kindly mark it as Accepted Solution to help other community members. A Kudos is also appreciated if you found the response helpful.

 

 

Thank you!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors