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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

How to calculate without blank

 
2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hello null values usually dont show on visulas and dont get calculated, so im guessing you changed null to a space or empty column? when you have the type of the column as text, blank will be used as a space like so if thats the case then just filter out the "blank" by doing this 

Countof = CALCULATE(COUNT(ETA_Table[ETA Grouping]),FILTER(ETA_Table,ETA_Table[ETA Grouping]<>""))

View solution in original post

Anonymous
Not applicable

kindly use this measure:

perc = [Count ETA]/CALCULATE(COUNT(Table2[ETA Grouping]),FILTER(ALL(Table2),Table2[ETA Grouping]<>""))

Screenshot 2022-10-24 015055.png

 

 by the way great work on design just peice of advice, try to create a metric table and put all your measures in it, its easier and more organized you can do that by clicking on "Enter data" tab and just naming the table metrics and after that add metrics to it and you can delete the blnak column

View solution in original post

14 REPLIES 14
Anonymous
Not applicable

Dear eliasayy,

What kind of data sample do you want? is it Excel workbook or PBI file?

Thank you
Prima Indonesia

Anonymous
Not applicable

anything will do i just need to see the data to know what you mean

Anonymous
Not applicable

Dear eliasayy,

Is it possible to upload the sample of Excel workbook (16KB or Power BI files (2MB) here. What is the icon should I use?

Thank you
Prima

Anonymous
Not applicable

for normal users like us we cant directly share files on powerbi. so for us to share
you need to upload the file to onedrive dropbox or whatever sharing cloud site and copy the link and share it here

Anonymous
Not applicable

Dear eliasayy,

I am very glad you back again to save me. 
Below is the link of Power BI file:
https://drive.google.com/file/d/1GQDxDovBQ-cYTiXqMtUHH3cB40vwM0Di/view?usp=sharing

Thank you very much.
Prima

Anonymous
Not applicable

no problem now can you please explain what youre trying to achieve? you want the count of eta without blanks to divid over total?

 

Anonymous
Not applicable

Dear eliasayy,

Below is the link of Excel workbook. 
https://docs.google.com/spreadsheets/d/1nCXE6NJJS9IkYXSzJFSmHTHEZPkjpMjh/edit?usp=sharing&ouid=11674...

Thank you very much
Prima 

Anonymous
Not applicable

Dear eliasayy,

Thank so much for you kind, help and attention.
My problem solved. 

percent.png

Again, thank you.
Prima Indonesia

Anonymous
Not applicable

Dear all,

I am using Power BI Desktop, update September 2022. 
I need to know how many line of oustanding items that will delivered within this week, next week, next 3 weeks, ans so on. 
I group them into:
1w
2w
3w
No PO (purchase order)

But in this column, I have also blank value, which is if the material already received. 

How do I calculate ignoring blank, I don't want the blank visualize. 
percent.png
Thank you very much.
Prima Indonesia

Anonymous
Not applicable

Hello null values usually dont show on visulas and dont get calculated, so im guessing you changed null to a space or empty column? when you have the type of the column as text, blank will be used as a space like so if thats the case then just filter out the "blank" by doing this 

Countof = CALCULATE(COUNT(ETA_Table[ETA Grouping]),FILTER(ETA_Table,ETA_Table[ETA Grouping]<>""))
Anonymous
Not applicable

Dear eliasayy,

The solution given to me working well, but then how do I get the percentage except/ignoring the blank?

% ETAGroup = 
    [Count ETA]/CALCULATE([Count ETA],ALL(Table2[OWL Type]))


With the above measure, it gave me the wrong result.

And below measure based on your suggestion is working well. 

Count ETA = 
CALCULATE(COUNT(Table2[ETA Grouping]),FILTER(Table2,Table2[ETA Grouping]<>""))


Thank you very much.
Prima Indonesia


Anonymous
Not applicable

kindly use this measure:

perc = [Count ETA]/CALCULATE(COUNT(Table2[ETA Grouping]),FILTER(ALL(Table2),Table2[ETA Grouping]<>""))

Screenshot 2022-10-24 015055.png

 

 by the way great work on design just peice of advice, try to create a metric table and put all your measures in it, its easier and more organized you can do that by clicking on "Enter data" tab and just naming the table metrics and after that add metrics to it and you can delete the blnak column

Anonymous
Not applicable

Dear eliasayy,
Thanks for everything. Thanks for your kind attention. 
May God bless you. 

Warm regards,
Prima Indonesia

Anonymous
Not applicable

hmm im not sure if i understood correctly if you could share some sample data or something to better understand

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.