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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Simran-Fathima
Frequent Visitor

Aggregate daily sales data to monthly and each month data should be displayed in separate column

I have different products sold on every day. I want to know in a particular month how many pieces of a particular product were sold.

The data is :

SimranFathima_1-1657883903195.png

 

And the Output should be :

SimranFathima_2-1657883961778.png

 

I request for the response as soon as possible. Please anyone help me

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

 

Picture1.png

 

I created a calendar table with having month name column and month number column. This helps to create a monthly aggregated information.

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

11 REPLIES 11
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

 

Picture1.png

 

I created a calendar table with having month name column and month number column. This helps to create a monthly aggregated information.

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Yes this is what I required. But I dont want blank spaces for the month which dont have sales. Instead it should be filled with "0". Can u please help me out on how to do this?

Hi,

Thank you for your message.

Please try to write measure (explicit measure) like below and put it into the visualization.

Please check the below measure and the attached file.

 

No of sales measure: = 
SUM( Data[No of sales] ) + 0

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

I'm not sure if I'm doing any mistake related to managing permissions. I'll send the screenshot of the relationships. Let me know where did i go wrong. 

I'm a beginner to power bi. So I seek for a help.

 

SimranFathima_1-1658145152833.png

 

 

Hi,

Please share your pbix file's link (onedrive or googledrive or dropbox...), and then I can try to have a look into it.

Thank you.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

I got the solution as expected. Thank you so much for your help

I have shared you the link of that pbix file Link. Hope a solution for my problem

 

 

https://my.shell.com/:u:/g/personal/simran_fathima_shell_com/EeJgI9NmQsZHqKLD2JB7iAcBm_3JCjWlmK7xPiO... 

Hi,

I do not have an access.

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

I'm not aware of how to share pbix file directly here

Didnt get the desired output. the output i got:

SimranFathima_0-1658144581219.png

 

amitchandak
Super User
Super User

@Simran-Fathima , Create a date table and join with your date and Month year there

 

Try a measure like sum(Table[No of sales]) +0

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.