cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Patron
Post Patron

GET RID OFF DAYS AND MONTH WITH NO DATA IN THE CHART

Who can help me out with the following challange:

 

Im trying to build a chart where I need to see the real quantity and quantity budget. It is importasnt to show "0" if there are not quantities sold but still show the quantity budget (Day 9, 21, and 22 in the picture)  my data start at 28 of september to 22 october and the problem is that it shows the months and days where I have no data at all.

 

This picture have this formula: 

Visitas Sellers Full RE CHART = VAR VisitaSeller=CALCULATE(COUNT(Base[IDPROSPECTO]);'Grupo R'[RECURSO (groups)]="RE")
Return IF(ISBLANK(VisitaSeller);"0";VisitaSeller
    
)

 

Captura5.PNG555

 

 

 

 

My second try cleaned days and month without data but I lose the day 9, 21 and 22 which I need to show the budget.

 

The formula for that is: (almost the same...I replace 0 by BLANK()): 

Visitas Sellers Full RE = VAR VisitaSeller=CALCULATE(COUNT(Base[IDPROSPECTO]);'Grupo R'[RECURSO (groups)]="RE")
Return IF(ISBLANK(VisitaSeller);BLANK();VisitaSeller)

Iget the following:

 

Captura6.PNG

 

Any DAX advice would be so much appreciate in order to solve this issue!!! ThANks in advance!!!

4 REPLIES 4
Highlighted
Super User IV
Super User IV

Re: GET RID OFF DAYS AND MONTH WITH NO DATA IN THE CHART

Easiest way would be to just use a Visual Filter and filter for the dates for which you have data. Do you need this to be dynamic? Can you share more information like sample/example data? Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490


---------------------------------------

Putting square pegs in round holes since 1972.

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Highlighted
Post Patron
Post Patron

Re: GET RID OFF DAYS AND MONTH WITH NO DATA IN THE CHART

Hi Greg!!! nice to have a PRO helping me out and thanks in advance. The easy way do not achieve what we are looking for.  It is needed to be dynamic. Ill send a pbix to you (private) and if you find a way to fix it Ill share the process for others to get the solutions.

 

🙂

Highlighted
Super User IV
Super User IV

Re: GET RID OFF DAYS AND MONTH WITH NO DATA IN THE CHART

Ah, go with the original formula where you return 0 if blank and add this visual level filter of BUDIA "is not blank" perhaps?


---------------------------------------

Putting square pegs in round holes since 1972.

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Highlighted
Post Patron
Post Patron

Re: GET RID OFF DAYS AND MONTH WITH NO DATA IN THE CHART

Tried that and it doesnt work 😞

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors