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

Unable to get the count in the bar graph?

Hi 

 

I am having an order table that has the date and order number. I would like to see how many orders we got per day through the bar graph. I have the date on the x-axis and the order number on the y-axis.  I changed the order number into count however it's not coming. 

 

My order and date columns as below 

 

jason2000_1-1621304349533.png

I want to calculate, for example, in 24/09, there will be two orders. So I want to visualize each day with total number of orders. My order number column in text format and date in date format. I am getting below graph

 

jason2000_2-1621304442809.png

 

It's making count, I need to sum it

 

Please advise

 

 

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

In the Query Editor, split the Request date field into Date and Time.  Create a Calendar Table and build a relationship from the Date column of your Table to the Date column of your Calendar Table.  To your visual, drag the Date column from the Calendar Table.  Write this measure

Measure1 = countrows(Data)

Hope this helps. 


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

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

In the Query Editor, split the Request date field into Date and Time.  Create a Calendar Table and build a relationship from the Date column of your Table to the Date column of your Calendar Table.  To your visual, drag the Date column from the Calendar Table.  Write this measure

Measure1 = countrows(Data)

Hope this helps. 


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

@Anonymous , Create a date column like this

 

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

 

and use that

 

better join it with date tbale and use date from there

 

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

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.