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
GianPaolo
Frequent Visitor

ISBLANK() or Measure +0 not working

hello!

 

I am trying to substitute the blank values I have in this small Matrix with 0 for further calculation

I have written this simple measure based on other answers I have found  but it is still not working

 

Sum - IsBlankMeasure = IF(ISBLANK(SUM('DB'[conta])) ,0, SUM('DB'[conta]))

 

I have tried also to add a 0 to the measure but didn't work either:

 

SUM('DB'[conta]) + 0

 

Here the link to the file

https://filetransfer.io/data-package/ILykcAZs#link

 

 

I would like to have for the row "CCC" and "EEE" the column "DELTA"with (-60) for CCC and (-97) for EEE and the same for the column (%).

 

Any help will be appreciated

 

 

 

 

1 ACCEPTED SOLUTION

Yes. You need to change the measure to reference the field from the dimension table:

 

% = 
VAR currentImporto = [Sum - IsBlankMeasure]
VAR AllImporto =
    CALCULATE(
        [Sum - IsBlankMeasure],
        ALL('DModello'[MODELLO])
        )
var ratio =
    DIVIDE(currentImporto,AllImporto)
return
    ratio

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

5 REPLIES 5
johnt75
Super User
Super User

The problem doesn't appear to be your measure definition but the behaviour of SUMMARIZECOLUMNS, which is what Power BI uses behind the scenes to generate the output for visuals. I created a dummy measure which simply returns 1 and I couldn't get SUMMARIZECOLUMNS to show a value for CCC or EEE when the year was filtered to 2022.

It seems to me like SUMMARIZECOLUMNS isn't even attempting to execute the measure if the underlying category, in this case MODELLO, does not exist in the filtered data.

I think your only chance is to make sure that you have at least 1 entry in each year for each product. You may be able to use Power Query or DAX to work out which products are missing for a given year and create dummy entries for those products

GianPaolo
Frequent Visitor

CommunityPBICattura.png

Here is the picture of the Matrix

You need to create a dimension table for MODELLO and use that in the visual:
dim.jpgmodel.jpgresult.jpg





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Thank you for your answer! This is close to what I need...But the measure (%) is going to 100% for all values...

Yes. You need to change the measure to reference the field from the dimension table:

 

% = 
VAR currentImporto = [Sum - IsBlankMeasure]
VAR AllImporto =
    CALCULATE(
        [Sum - IsBlankMeasure],
        ALL('DModello'[MODELLO])
        )
var ratio =
    DIVIDE(currentImporto,AllImporto)
return
    ratio

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






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.