cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
markefrody
Helper V
Helper V

Summarize Count per Day

Hi,

 

I have a table which looks like this:

markefrody_0-1637811711893.png

pbix file can be found here:
https://www.dropbox.com/s/ohxiqo3wsughxeo/Sample%20Data.pbix?dl=0

I'm trying to create a DAX code with these two conditions if I filter for field "DatePlaced":
1. # Loaded = Count all fields which are "blank" in the "DateEmptied" column.
2. # Empty = Count all fields which are not "blank" in the "DateEmptied" column.

It should appear like this:

markefrody_2-1637811956951.png



Then summarize it per "DatePlaced" like this. Should be summarized by date only. No time needed:

markefrody_3-1637812024399.png

 

Appreciate your kind assistance. Thanks!

Best regards,
Mark V.

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

7 REPLIES 7
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

Thanks @Ashish_Mathur! This is what I was looking for. Thank you for your assistance.

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
Super User

@markefrody ,

Create a separate date column in power query or dax and try to use that

 


Date = [datetime].date
or
Date = date(year([datetime]),month([datetime]),day([datetime]))

 

 

Power query

DateTime.Date([datetime])

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!

Hi @amitchandak

I already have this as a date column named "DatePlaced(DateOnly)".

Will you be able to assist me in creating the DAX code for the 2 conditions and summary? Thanks.

#loaded = COUNTROWS(FILTER(Sheet1, Sheet1[DateEmptied] = BLANK()))

#empty should just be a simple count - I'll let you do that one.

I don't get quite the same results shown in the table, e.g. 11/17 has 8 empty, 11/18 is in the table twice with different results. Can you check please?

@HotChilli that you for your reply and assistance. I really appreciate it.
Sorry for the excel table mistake. Was in a rush to post it. You are right 11/17 has 8 empty. Thanks.

Helpful resources

Announcements
Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Top Solution Authors
Top Kudoed Authors