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
paris
Helper V
Helper V

Creating a bar graph

Hi All,

 

Need your help again! 

I want to create a bar graph by country by product by month. However my data source is not on monthly basis or daily basis but date of sales basis so it makes difficult... 

 

Appreciate your help.

 

All the best,

Love Paris

 

2019_08_10_power_bi.png

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

Build a relationship from the Shipping Date column of the Sales Table to the Date column of the Calendar Table.  In the Calendar Table, extract Year and Month by using the calculated column formulas

Year = Year(Calendar[Date])

Month = FORMAT(Calendar[Date],"mmmm")

To your visual, drag Year and Month from the Calendar Table.  Write this measure

Total Sales = SUM(Data[Sales])

Hope this helps.


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

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

Build a relationship from the Shipping Date column of the Sales Table to the Date column of the Calendar Table.  In the Calendar Table, extract Year and Month by using the calculated column formulas

Year = Year(Calendar[Date])

Month = FORMAT(Calendar[Date],"mmmm")

To your visual, drag Year and Month from the Calendar Table.  Write this measure

Total Sales = SUM(Data[Sales])

Hope this helps.


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

Ashih,

 

Thank you very much for your help!

 

All the best,

LoveParis

You are welcome.


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

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.