Forum Discussion

christianfcbmx's avatar
christianfcbmx
Icon for Post Patron rankPost Patron
7 years ago

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
    
)

 

555

 

 

 

 

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:

 

 

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

4 Replies

    • christianfcbmx's avatar
      christianfcbmx
      Icon for Post Patron rankPost Patron

      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.

       

      :)

      • Greg_Deckler's avatar
        Greg_Deckler
        Icon for Community Champion rankCommunity Champion

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