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
DearestYoki
Frequent Visitor

Replacing BLANK with text in a particular period

Hi all,

 

I am currently facing a issue of replacing BLANK with "No" inside my measure and only showing last 4 weeks value.  1.PNG 

What I want to display is actually W6, W7, W8, W9, and replace all blank values with "No".

The formula for Call is:

CALL L4W =
var lastvdate = [LAST VISIT DATE FOR ALL CUSTOMER]
VAR L4WSTART= [Last 3 Weeks No.]
return
CALCULATE(MAXX(Last_Call_Within_Route_Plan,Last_Call_Within_Route_Plan[Call_Visited_Flag]),Last_Call_Within_Route_Plan[VISIT_DT]>=L4WSTART && Last_Call_Within_Route_Plan[VISIT_DT]<=lastvdate)
 
If I use IF(ISBLANK([CALL L4W],"No",[CALL L4W]))
or COALESCE([CALL L4W],"No") Then all weeks are displayed instead of last 4 weeks.
2.PNG
Thanks & Regards,
Yoki
2 REPLIES 2
Anonymous
Not applicable

Hi @DearestYoki,

Can please share some dummy data with a similar data structure and expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

amitchandak
Super User
Super User

@DearestYoki , Try a measure like

0 between range
Measure = var _1= IF(ISBLANK([CALL L4W],"No",[CALL L4W]))

var _min = minx(ALLSELECTED('Calendar'), 'Calendar'[Date])
var _max = maxx(ALLSELECTED('Calendar'), 'Calendar'[Date])
return
CALCULATE(if(max('Calendar'[Date]) <_min || max('Calendar'[Date]) >_max , BLANK(), _1))

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