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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
I_LOVE_POWER_BI
Helper III
Helper III

Using a date slicer to define FIRSTNONBLANK and LASTNONBLANK values leads to problems

Hi community,

 

What I do now and doesn't fully work:

I am using a date slicer on my report choosing 2 dates. Via FIRSTNONBLANK and LASTNONBLANK the values in one matrix are shown via the 2 measures based on the chosen dates (Last Planning / Current Planning). However, for some dates there aren't any entries on LASTNONBLANK (Current Planning) - that way it will show the same value as in FIRSTNONBLANK (Last Planning). But I want to exactly see the value for that date, if there is no value, I want it to show 0 for that date.

 

I guess that's just what FIRSTNONBLANK and LASTNONBLANK is intended to do.

 

What I need now:

So now I am looking for an option how to dynamically use my date slicer and show the first chosen date in one measure and the second chosen date in another measure. However, I can't come up with anything better than the mentioned example above. And no, I do not want to write "hard" lookups into the measure beacuse I would completly loose the flexibility via the slicer.  

 

Looking forward to your ideas! Thanks!

2 REPLIES 2
Anonymous
Not applicable

Hi @I_LOVE_POWER_BI ,

 

Did above formula works for you? If it works please consider to mark it as solution. If not, please share some sample data and expected result to us.

 

Best Regards,

Jay

amitchandak
Super User
Super User

@I_LOVE_POWER_BI , not very clear

 

max date in slicer =maxx(allselcted(date),date[date])

min date in slicer =minx(allselcted(date),date[date])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors