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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
christianfcbmx
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
Greg_Deckler
Super User
Super User

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


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.

 

🙂

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


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Tried that and it doesnt work 😞

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.