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! Request now

Reply
vani
Helper I
Helper I

show items with no data

Hello guys,

 

I´ve the following visualization:

 

PBI_example.png

 

Instead of having Mar/17 and then Mar/20 and want to see those days that i´ve no data ( this case on Mar/18 and Mar/19).

 

I tried the following formula:

 

Sales last 30 days  = if(CALCULATE(SUM(FACT_INSCRICOES[PRATICANTES]);FACT_INSCRICOES[IND_LAST_30_DAYS]=1)=blank();0;CALCULATE(SUM(FACT_INSCRICOES[PRATICANTES]);FACT_INSCRICOES[IND_LAST_30_DAYS]=1))

 

but when apply it , instead of show the last 30 days, it show me all dates that has no data instead of show just the last 30 days that i have marked on the calculated column.

 

Any sugestions? 

 

Thanks

 

1 ACCEPTED SOLUTION
bblais
Resolver III
Resolver III

Try just this:

Sales Last 30 Days = SUM(FACT_INSCRICOES[PRATICANTES])+0

 

Then use a slicer or other filter to limit your visual to only showing the last 30 days.  The +0 will always give 0 if there are no sales for that day. 

View solution in original post

2 REPLIES 2
bblais
Resolver III
Resolver III

Try just this:

Sales Last 30 Days = SUM(FACT_INSCRICOES[PRATICANTES])+0

 

Then use a slicer or other filter to limit your visual to only showing the last 30 days.  The +0 will always give 0 if there are no sales for that day. 

@bblais

 

Many thanks for the sugestion. I just use the filter IND_LAST_30_DAYS as visual level filters and the formula as you suggested and it works fine!

 

PBI_example_1.png

 

Thanks you Smiley Very Happy

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors