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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
PBINoob_v3
Frequent Visitor

How to avoid Blank

PBINoob_v3_0-1683596770091.png

PBINoob_v3_1-1683596795203.png

 

After filtering the data, both Day and Total Qty are blank.There is no data of last 40 days, so the dashboard is Blank. How to display 0 on the dashboard?

[Day] and [Total Qty] does not have last 40 days' data.

[Day] is Date.

[Total Qty] is Number.

1 ACCEPTED SOLUTION
PBINoob_v3
Frequent Visitor

 

Hi, @DOLEARY85 @Jihwan_Kim 

I solved problem.

Of course  need to create a measure for [Total Qty], but still to make a little change on [Date].

I created a table that data is from Today to Last 40 days.

PBINoob_v3_0-1683685885772.png

And I related the [Date] and [Day]:

PBINoob_v3_1-1683685960711.png

Finaly, it displayed ZERO.

PBINoob_v3_2-1683686008417.png

Thanks for your help!

View solution in original post

7 REPLIES 7
PBINoob_v3
Frequent Visitor

 

Hi, @DOLEARY85 @Jihwan_Kim 

I solved problem.

Of course  need to create a measure for [Total Qty], but still to make a little change on [Date].

I created a table that data is from Today to Last 40 days.

PBINoob_v3_0-1683685885772.png

And I related the [Date] and [Day]:

PBINoob_v3_1-1683685960711.png

Finaly, it displayed ZERO.

PBINoob_v3_2-1683686008417.png

Thanks for your help!

Jihwan_Kim
Super User
Super User

Hi, 
Plrease try creating a new measure that looks something like below.

 

New Measure: =
[Total Qty] + 0

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

Hi,

This is my measure:

total_line2 =
var _sales = SUM('ProdManual Line_Line2'[Total Qty])
return
IF(ISBLANK(_sales),0,_sales)
It doesn't work. Maybe it is [Day] 's problem

Hi,

 

try this:

 

total_line2 =
var _sales = SUM('ProdManual Line_Line2'[Total Qty])
return
COALESCE(_sales,0)
 
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

It is still Blank. 

[Day] and [Total Qty] are blank in the table, because there are no data of last 40 days.

Maybe i should create a measure for [Day]?

You could try that,

 

Maybe try the COALESCE on the Var before:

 

total_line2 =
var _sales = COALESCE(SUM('ProdManual Line_Line2'[Total Qty]),0)
return
COALESCE(_sales,0)
 
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Hi, @DOLEARY85 

I just tried the COALESCE on the Var before, but it doesn't work.

I think maybe it is [Day]'s problem.May I ask you how to create a measure for Date.

Thank you!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.