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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
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.

Didnt get the desired output. the output i got:

SimranFathima_0-1658144581219.png

 

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 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

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

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Users online (25)