cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
markus_zhang
Advocate II
Advocate II

How to filter out blank rows from a column

Hi experts,

I'm trying to use a calculate column to get the percentile based on another column that has blank values, Power BI complains that "Expressions that yield variant data-type cannot be used to define calculated columns", which I assume has something to do with the blank values.

 

So far I haven't been able to achieve this, and AFAIK ALLNOBLANKROW() seems to be close but it actually consumes a table and produces another table. Also I cannot wrap PERCENTILE.EXC with a CALCULATE because I'll lose row context.

 

Code:

Login_total = 
    PERCENTILE.EXC(
        Email[Login_count],
        Percentile[Percentile] / 100
    )
1 ACCEPTED SOLUTION
markus_zhang
Advocate II
Advocate II

Solved.

I stumbled on another post and solved the issue by changing the format of the source column to decimal instead of integer. Apparently this has nothing to do blank values, as my other percentile calculated columns also consume balnk values and they are fine.

View solution in original post

1 REPLY 1
markus_zhang
Advocate II
Advocate II

Solved.

I stumbled on another post and solved the issue by changing the format of the source column to decimal instead of integer. Apparently this has nothing to do blank values, as my other percentile calculated columns also consume balnk values and they are fine.

Helpful resources

Announcements
Power BI Show Ep 4 Post Show Carousel.jpg

The Power BI Community Show

Shabnam Watson demos Incremental refresh & Hybrid Tables and Leila Etaati demos Charticulator.

PBI April Release 2022 768x460.png

Check it out!

Click here to read more about the April 2022 updates!

Power BI Dev Camp Session 22 768x460.jpg

Check it out!

Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!