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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Fill blanks with the last value

Hello Community,

 

I'm trying to fill the blank values of a funnel, the values decreases from left to right:

 

ManuSacchetti_0-1659559778062.png

 

This is the DAX expression I´m using:

 

VAR UncumulativeTotal = CALCULATE(COUNT('Base General (new)'[Tenure (groups)]),'Base General (new)'[Tenure (groups in number format)]>=MAX('Base General (new)'[Tenure (groups in number format)]))

VAR last_value= CALCULATE(COUNT('Base General (new)'[Tenure (groups)]),FILTER('Base General (new)','Base General (new)'[Tenure (groups in number format)]<=SELECTEDVALUE('Base General (new)'[Tenure (groups in number format)])-1))
 
RETURN

IF(ISBLANK(COUNT('Base General (new)'[Tenure (groups)])),last_value,UncumulativeTotal)

 

1 REPLY 1
lbendlin
Super User
Super User

You cannot report on something that isn't there unless you use disconnected tables and/or crossjoins

 

Please provide sanitized sample data that fully covers your issue. I cannot help you without usable sample data.
Please paste the data into a table in your post or use one of the file services like OneDrive or Google Drive. I cannot use screenshots of your source data.
Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.