Forum Discussion

vbvbvb's avatar
vbvbvb
Microsoft Employee
5 years ago
Solved

Blank values for Data slicer using only SPO list as data source

Hi all,   PBI noob here - i have PBI which is using columns from SharePoint Online as data source to produce visuals. It's Data Slicer + Filter using SPO columns and outcome is  heavily dependent ...
  • PhilipTreacy's avatar
    5 years ago

    Hi vbvbvb 

    Download sample PBIX with the following visuals and data

    Presumably these cards are displaying things like Count or Sum of some columns?  You could write measures to do the same and specify 0 if the result is Blank e.g.

    Measure = 
    
    VAR _Count = CALCULATE(COUNTROWS('Example Data'), FILTER('Example Data', 'Example Data'[Scenario ] = "No Customer Name"))
    
    RETURN
    
    IF(ISBLANK(_Count), 0, _Count)

     

    Or you can set Conditional Formatting on the cards to make the text white when the value is (Blank).

     

    Regards

    Phil