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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Visual filter disable after "Show items with no data"

Hello,

 

I have an issue.

Task is to show opportunity sum in last three months by day and showing days with no data.

Somehow when I check "Show items with no data" visual filter (last 3 month) became disabled.

I'm struggling all day, maybe I'm looking in wrong direction:

  • I've created measure, that brings zero with opportunity count is blank
  • Joined Date table

None of it worked. Expected outcome and result in the picture. Link to pbix example below.

Keep in mind there will be a big size of data, so solution must be clean.

Thanks in advanced!

Capture.JPG

 

https://drive.google.com/file/d/1qAO9bmTbRetcVocXXMH1bwPtA0QAIVGi/view?usp=sharing

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Create a measure like

 

Measure = var _1= SUM(Opportunity[Opportunity count]) +0 
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))

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Create a measure like

 

Measure = var _1= SUM(Opportunity[Opportunity count]) +0 
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))
littlemojopuppy
Community Champion
Community Champion

Hi @Anonymous 

 

Is this what you're expecting?

littlemojopuppy_0-1610030953581.png

All I did to change it from what you posted to this was in the well for axis was change it from the date hierarchy to just the date like this

littlemojopuppy_1-1610031046602.png

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.