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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
markus_zhang
Advocate III
Advocate III

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 III
Advocate III

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 III
Advocate III

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.