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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
rtaylor
Helper III
Helper III

Explanation as to why firstnonblank is showing blanks

Hello,

 

I'm wondering if anyone can provide an explanation as to why firstnonblank function shows blanks? It doesn't seem to make any sense as to why first NON BLANK would show a blank value.  Anyhelp is appreciated. Thank you.

 

Formula Used:

calculate(FIRSTNONBLANK('Actual Details All'[SupplyDetailCat1],1))
SupplyDetailCat1 is the column category
SuppliesServicesLineRankExp is the firstnonblank formula.

image.png

2 REPLIES 2
jdbuchanan71
Super User
Super User

The measure Act_Detail_SUB_Act_Detail_PY1 returns a value for even the blank row so the FIRSTNONBLANK can't find anything on that line but a blank so it returns it.

Why not just apply a visual level filter to [SupplyDetailCat1] of IS NOT BLANK?

>The measure Act_Detail_SUB_Act_Detail_PY1 returns a value for even the blank row so the FIRSTNONBLANK can't find anything on that line but a blank so it returns it.

 

I disagree. If this were the case I would only see a blank value for the firstnonblank on a blank category. For example if you look at emergency related services, the entry is clearly not blank and there is value in the the measure Act_Detail_SUB_Act_Detail_PY1, so should it show "emergency related services" when using the firstnonblank calculation. 

 

 

Why not just apply a visual level filter to [SupplyDetailCat1] of IS NOT BLANK?

 

I was only using this visual to display the information I needed. This formula is part of a more complex formula to rank these categories and use that rank to display information.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.