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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
kmartink
Frequent Visitor

Display in a card the last non blank value

Hi, I'm using this Data:

kmartink_0-1684307987172.png

 

and would like to build a measure to display in a card the last non blank value per each variable. Any suggestions? Thank you in advance!

1 REPLY 1
ryan_mayu
Super User
Super User

@kmartink 

you can try to create a date column

date = date('Table'[Year],'Table'[Month],1)

then create a measure

measure = CALCULATE(sum('Table'[x]),LASTNONBLANK('Table'[date],CALCULATE(sum('Table'[x]))))

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.