Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi all,
I am making a report , that contains 4-5 slicers, i want to ask one thing that whenever I make selections from the slicer then the corresponding results appears on my dashboard, but sometimes when the relevant data is not present, it shows BLANK, but I want N/A instead of BLANK, how to go ahead with this ?
Can somebody please help ?
Thanks !
Solved! Go to Solution.
Hi @Anonymous
I think this should cover your requirement:
yourMeasure =
VAR calc =
//Put all your original measure code into a variable here
CALCULATE (
COUNTROWS ( MVIEW_PRICING_CHALLENGES ),
FILTER ( MVIEW_PRICING_CHALLENGES,
MVIEW_PRICING_CHALLENGES[CREATEDTIMESTAMP].[Date]
>= ( SELECTEDVALUE ( 'DATE TABLE'[Date] ) - W_NO_DAYS )
&& MVIEW_PRICING_CHALLENGES[CREATEDTIMESTAMP].[Date]
< ( SELECTEDVALUE ( 'DATE TABLE'[Date] ) )
)
)
RETURN
//Reference variable within IF statement
IF(
ISBLANK(calc),
"N/A",
calc
)
You could also use the same variable method, but change the code after RETURN to the following to use @Anonymous 's tidier method:
COALESCE(calc, "N/A")
Proud to be a Datanaut!
@Anonymous
You can use replace value feature in Query Editor, which is the most straightforward way.
Paul Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Proud to be a Datanaut!
Hi,
I tried manipulating my measure but that is showing blank.
My measure is :
Hi @Anonymous
I think this should cover your requirement:
yourMeasure =
VAR calc =
//Put all your original measure code into a variable here
CALCULATE (
COUNTROWS ( MVIEW_PRICING_CHALLENGES ),
FILTER ( MVIEW_PRICING_CHALLENGES,
MVIEW_PRICING_CHALLENGES[CREATEDTIMESTAMP].[Date]
>= ( SELECTEDVALUE ( 'DATE TABLE'[Date] ) - W_NO_DAYS )
&& MVIEW_PRICING_CHALLENGES[CREATEDTIMESTAMP].[Date]
< ( SELECTEDVALUE ( 'DATE TABLE'[Date] ) )
)
)
RETURN
//Reference variable within IF statement
IF(
ISBLANK(calc),
"N/A",
calc
)
You could also use the same variable method, but change the code after RETURN to the following to use @Anonymous 's tidier method:
COALESCE(calc, "N/A")
Proud to be a Datanaut!
Thanks !
I removed that error and it is working properly now.
No, still this is no working
error: the syntax of VAR is incorrect.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.